MarshalAsAttribute Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy MarshalAsAttribute.
Przeciążenia
| Nazwa | Opis |
|---|---|
| MarshalAsAttribute(Int16) |
Inicjuje nowe wystąpienie MarshalAsAttribute klasy z określoną 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
- Źródło:
- MarshalAsAttribute.cs
- Źródło:
- MarshalAsAttribute.cs
Inicjuje nowe wystąpienie MarshalAsAttribute 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ć marshalowane jako.
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
- Ź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 jako.
Uwagi
W przypadku czytelnego kodu, który jest mniej podatny na błąd, zawsze używaj tego konstruktora.