MarshalAsAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MarshalAsAttribute.

Przeciążenia

MarshalAsAttribute(Int16)

Inicjuje MarshalAsAttribute nowe wystąpienie klasy z określoną UnmanagedType wartością.

MarshalAsAttribute(UnmanagedType)

Inicjuje MarshalAsAttribute nowe wystąpienie klasy z określonym UnmanagedType elementem członkowskim wyliczenia.

MarshalAsAttribute(Int16)

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

Inicjuje MarshalAsAttribute nowe wystąpienie klasy z określoną 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ć marshaledowane.

Uwagi

Ten konstruktor przyjmuje podstawową 16-bitową liczbę całkowitą ze znakiem, 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 z określonym UnmanagedType elementem członkowskim 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ć marshaledowane.

Uwagi

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

Zobacz też

Dotyczy