Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StringMarshalling Enum

Definition

Namespace:
System.Runtime.InteropServices
Assembly:
System.Runtime.InteropServices.dll
Source:
StringMarshalling.cs
Source:
StringMarshalling.cs
Source:
MetadataUpdater.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Specifies how strings should be marshalled for generated p/invokes

public enum class StringMarshalling
public enum StringMarshalling
type StringMarshalling = 
Public Enum StringMarshalling
Inheritance
StringMarshalling

Fields

Name Value Description
Custom 0

Indicates a specific marshaller is supplied in StringMarshallingCustomType.

Utf8 1

Use the platform-provided UTF-8 marshaller.

Utf16 2

Use the platform-provided UTF-16 marshaller.

Applies to


Feedback

Was this page helpful?