Freigeben über


Type.EmptyTypes-Feld

Stellt ein leeres Array vom Type-Typ dar. Dieses Feld ist schreibgeschützt.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared ReadOnly EmptyTypes As Type()
'Usage
Dim value As Type()

value = Type.EmptyTypes
public static readonly Type[] EmptyTypes
public:
static initonly array<Type^>^ EmptyTypes
public static final Type[] EmptyTypes
public static final var EmptyTypes : Type[]

Beispiel

Im folgenden Beispiel wird das EmptyTypes-Feld in einem Aufruf einer der GetConstructor-Methoden verwendet, um einen Konstruktor abzurufen, der keine Parameter akzeptiert.

cInfo = type.GetConstructor(BindingFlags.ExactBinding, _
   Nothing, Type.EmptyTypes, Nothing)
cInfo = type.GetConstructor (BindingFlags.ExactBinding, null, 
         Type.EmptyTypes, null);
cInfo = type->GetConstructor( BindingFlags::ExactBinding, nullptr,
   Type::EmptyTypes, nullptr );
ConstructorInfo cInfo;
cInfo = type.GetConstructor(BindingFlags.ExactBinding, null,
    Type.EmptyTypes, null);
var cInfo : ConstructorInfo = type.GetConstructor (BindingFlags.ExactBinding, null, 
                Type.EmptyTypes, null);

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Type-Klasse
Type-Member
System-Namespace