StructLayoutAttribute.CharSet Campo

Definizione

Indica se i campi dati stringa all'interno della classe devono essere sottoposto a marshalling come LPWSTR o LPSTR per impostazione predefinita.

public: System::Runtime::InteropServices::CharSet CharSet;
public System.Runtime.InteropServices.CharSet CharSet;
val mutable CharSet : System.Runtime.InteropServices.CharSet
Public CharSet As CharSet 

Valore del campo

Commenti

Se il CharSet campo è impostato su CharSet.Unicode o CharSet.Auto, tutti gli argomenti stringa vengono convertiti in caratteri Unicode (LPWSTR) prima che vengano passati all'implementazione non gestita. Se il campo è impostato su CharSet.Ansi, le stringhe vengono convertite in stringhe ANSI (LPSTR).

Si applica a

Vedi anche