## Marshal::StringToHGlobalUni method


Copies the contents of a specified string into unmanaged memory.

```cpp
static IntPtr System::Runtime::InteropServices::Marshal::StringToHGlobalUni(const String &s)
```


| Parameter | Type | Description |
| --- | --- | --- |
| s | const String\& | A string to be copied. |

### ReturnValue

The address, in unmanaged memory.

## See Also

* Class [String](../../../system/string/)
* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.TeX for C++](../../../)
