MarshalAsAttribute Constructors

Definitie

Initialiseert een nieuw exemplaar van de MarshalAsAttribute klasse.

Overloads

Name Description
MarshalAsAttribute(Int16)

Initialiseert een nieuw exemplaar van de MarshalAsAttribute klasse met de opgegeven UnmanagedType waarde.

MarshalAsAttribute(UnmanagedType)

Initialiseert een nieuw exemplaar van de MarshalAsAttribute klasse met het opgegeven UnmanagedType opsommingslid.

MarshalAsAttribute(Int16)

Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs

Initialiseert een nieuw exemplaar van de MarshalAsAttribute klasse met de opgegeven UnmanagedType waarde.

public:
 MarshalAsAttribute(short unmanagedType);
public MarshalAsAttribute(short unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : int16 -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As Short)

Parameters

unmanagedType
Int16

De waarde die de gegevens bevatten, moet als marshaled worden beschouwd.

Opmerkingen

Deze constructor gebruikt een onderliggend 16-bits geheel getal dat elk UnmanagedType opsommingslid vertegenwoordigt. De Tlbimp.exe (Type Library Importer) maakt gebruik van deze constructor.

Zie ook

Van toepassing op

MarshalAsAttribute(UnmanagedType)

Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs
Bron:
MarshalAsAttribute.cs

Initialiseert een nieuw exemplaar van de MarshalAsAttribute klasse met het opgegeven UnmanagedType opsommingslid.

public:
 MarshalAsAttribute(System::Runtime::InteropServices::UnmanagedType unmanagedType);
public MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : System.Runtime.InteropServices.UnmanagedType -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As UnmanagedType)

Parameters

unmanagedType
UnmanagedType

De waarde die de gegevens bevatten, moet als marshaled worden beschouwd.

Opmerkingen

Gebruik deze constructor altijd voor leesbare code die minder gevoelig is voor fouten.

Zie ook

Van toepassing op