다음을 통해 공유


Type.EmptyTypes 필드

Type 형식의 빈 배열을 나타냅니다. 이 필드는 읽기 전용입니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Shared ReadOnly EmptyTypes As Type()
‘사용 방법
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[]

예제

다음 코드 예제에서는 매개 변수를 사용하지 않는 생성자를 가져오기 위한 GetConstructor 메서드 중 하나에 사용되는 EmptyTypes 필드를 보여 줍니다.

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);

플랫폼

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

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

Type 클래스
Type 멤버
System 네임스페이스