StructLayoutAttribute Konstruktorok
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Inicializálja a StructLayoutAttribute osztály új példányát.
Túlterhelések
| Name | Description |
|---|---|
| StructLayoutAttribute(Int16) |
Inicializálja az osztály új példányát StructLayoutAttribute a megadott LayoutKind enumerálási taggal. |
| StructLayoutAttribute(LayoutKind) |
Inicializálja az osztály új példányát StructLayoutAttribute a megadott LayoutKind enumerálási taggal. |
StructLayoutAttribute(Int16)
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
Inicializálja az osztály új példányát StructLayoutAttribute a megadott LayoutKind enumerálási taggal.
public:
StructLayoutAttribute(short layoutKind);
public StructLayoutAttribute(short layoutKind);
new System.Runtime.InteropServices.StructLayoutAttribute : int16 -> System.Runtime.InteropServices.StructLayoutAttribute
Public Sub New (layoutKind As Short)
Paraméterek
- layoutKind
- Int16
16 bites egész szám, amely az LayoutKind osztály vagy a struktúra elrendezését meghatározó értékek egyikét jelöli.
Megjegyzések
Ez a konstruktor egy mögöttes 16 bites egész számot vesz fel, amely az egyes enumerálási tagokat LayoutKind jelöli. Tlbimp.exe (Típustár-importáló) ezt a konstruktort használja.
Lásd még
A következőre érvényes:
StructLayoutAttribute(LayoutKind)
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
- Forrás:
- StructLayoutAttribute.cs
Inicializálja az osztály új példányát StructLayoutAttribute a megadott LayoutKind enumerálási taggal.
public:
StructLayoutAttribute(System::Runtime::InteropServices::LayoutKind layoutKind);
public StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind layoutKind);
new System.Runtime.InteropServices.StructLayoutAttribute : System.Runtime.InteropServices.LayoutKind -> System.Runtime.InteropServices.StructLayoutAttribute
Public Sub New (layoutKind As LayoutKind)
Paraméterek
- layoutKind
- LayoutKind
Az egyik számbavételi érték, amely meghatározza az osztály vagy a struktúra elrendezését.
Megjegyzések
Az olvasható, a hibára kevésbé hajlamos kód esetén mindig ezt a konstruktort használja.