StructLayoutAttribute Constructors

Definitie

Initialiseert een nieuw exemplaar van de StructLayoutAttribute klasse.

Overloads

Name Description
StructLayoutAttribute(Int16)

Initialiseert een nieuw exemplaar van de StructLayoutAttribute klasse met het opgegeven LayoutKind opsommingslid.

StructLayoutAttribute(LayoutKind)

Initialiseert een nieuw exemplaar van de StructLayoutAttribute klasse met het opgegeven LayoutKind opsommingslid.

StructLayoutAttribute(Int16)

Initialiseert een nieuw exemplaar van de StructLayoutAttribute klasse met het opgegeven LayoutKind opsommingslid.

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

Parameters

layoutKind
Int16

Een 16-bits geheel getal dat een van de LayoutKind waarden vertegenwoordigt die aangeeft hoe de klasse of structuur moet worden gerangschikt.

Opmerkingen

Deze constructor gebruikt een onderliggend 16-bits geheel getal dat elk LayoutKind opsommingslid vertegenwoordigt. Tlbimp.exe (Type Library Importer) gebruikt deze constructor.

Zie ook

Van toepassing op

StructLayoutAttribute(LayoutKind)

Initialiseert een nieuw exemplaar van de StructLayoutAttribute klasse met het opgegeven LayoutKind opsommingslid.

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)

Parameters

layoutKind
LayoutKind

Een van de opsommingswaarden die aangeeft hoe de klasse of structuur moet worden gerangschikt.

Opmerkingen

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

Zie ook

Van toepassing op