MarshalAsAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MarshalAsAttribute.

Przeciążenia

MarshalAsAttribute(Int16)

Inicjuje MarshalAsAttribute nowe wystąpienie klasy o określonej UnmanagedType wartości.

MarshalAsAttribute(UnmanagedType)

Inicjuje MarshalAsAttribute nowe wystąpienie klasy przy użyciu określonego UnmanagedType elementu członkowskiego wyliczenia.

MarshalAsAttribute(Int16)

Źródło:
MarshalAsAttribute.cs
Źródło:
MarshalAsAttribute.cs
Źródło:
MarshalAsAttribute.cs

Inicjuje MarshalAsAttribute nowe wystąpienie klasy o określonej UnmanagedType wartości.

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

Parametry

unmanagedType
Int16

Wartość, w ramach których dane mają być marshalowane.

Uwagi

Ten konstruktor przyjmuje podstawową 16-bitową liczbę całkowitą podpisaną, która reprezentuje każdy UnmanagedType element członkowski wyliczenia. Tlbimp.exe (importer biblioteki typów) używa tego konstruktora.

Zobacz też

Dotyczy

MarshalAsAttribute(UnmanagedType)

Źródło:
MarshalAsAttribute.cs
Źródło:
MarshalAsAttribute.cs
Źródło:
MarshalAsAttribute.cs

Inicjuje MarshalAsAttribute nowe wystąpienie klasy przy użyciu określonego UnmanagedType elementu członkowskiego wyliczenia.

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)

Parametry

unmanagedType
UnmanagedType

Wartość, w ramach których dane mają być marshalowane.

Uwagi

W przypadku kodu czytelnego, który jest mniej podatny na błąd, zawsze należy użyć tego konstruktora.

Zobacz też

Dotyczy