## Marshal::StringToHGlobalAuto method


Copie le contenu d’une chaîne spécifiée dans la mémoire non gérée, en le convertissant au format ANSI si nécessaire.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| s | const String\& | Une chaîne à copier. |

### ReturnValue

L’adresse, dans la mémoire non gérée.

## Voir aussi

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