TypeDescriptor.GetClassName 메서드

정의

지정된 구성 요소에 대한 클래스 이름을 반환합니다.

오버로드

GetClassName(Object)

기본 형식 설명자를 사용하여 지정된 구성 요소에 대한 클래스 이름을 반환합니다.

GetClassName(Type)

지정된 형식에 대한 클래스의 이름을 반환합니다.

GetClassName(Object, Boolean)

사용자 지정 형식 설명자를 사용하여 지정된 구성 요소에 대한 클래스의 이름을 반환합니다.

GetClassName(Object)

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

기본 형식 설명자를 사용하여 지정된 구성 요소에 대한 클래스 이름을 반환합니다.

public:
 static System::String ^ GetClassName(System::Object ^ component);
public static string GetClassName (object component);
public static string? GetClassName (object component);
static member GetClassName : obj -> string
Public Shared Function GetClassName (component As Object) As String

매개 변수

component
Object

클래스 이름을 지정할 Object 입니다.

반환

지정된 구성 요소 형식에 대한 클래스의 이름을 포함하는 String 입니다.

예외

component이(가) null인 경우

설명

일반적으로 이 메서드는 매개 변수 형식의 전체 Type 이름을 component 반환합니다. 예를 들어 단추의 클래스 이름은 "System.Windows입니다. Forms. Button"을 선택합니다. 를 구현하는 ICustomTypeDescriptor경우 component 대체 이름을 반환할 수 있습니다.

이 메서드는 의 두 번째 매개 변수false를 사용하여 오버로드된 GetClassName(Object, Boolean) 메서드와 동일합니다.

추가 정보

적용 대상

GetClassName(Type)

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

지정된 형식에 대한 클래스의 이름을 반환합니다.

public:
 static System::String ^ GetClassName(Type ^ componentType);
public static string GetClassName (Type componentType);
public static string? GetClassName (Type componentType);
static member GetClassName : Type -> string
Public Shared Function GetClassName (componentType As Type) As String

매개 변수

componentType
Type

대상 구성 요소의 Type입니다.

반환

지정된 구성 요소 형식에 대한 클래스의 이름을 포함하는 String 입니다.

예외

componentType이(가) null인 경우

설명

이 메서드는 지정된 형식에 대해 캐시된 사용자 지정 형식 설명자를 사용하여 연결된 클래스 이름을 검색합니다.

추가 정보

적용 대상

GetClassName(Object, Boolean)

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

사용자 지정 형식 설명자를 사용하여 지정된 구성 요소에 대한 클래스의 이름을 반환합니다.

public:
 static System::String ^ GetClassName(System::Object ^ component, bool noCustomTypeDesc);
public static string GetClassName (object component, bool noCustomTypeDesc);
public static string? GetClassName (object component, bool noCustomTypeDesc);
static member GetClassName : obj * bool -> string
Public Shared Function GetClassName (component As Object, noCustomTypeDesc As Boolean) As String

매개 변수

component
Object

클래스 이름을 지정할 Object 입니다.

noCustomTypeDesc
Boolean

사용자 지정 형식 설명 정보를 고려하지 않으려면true 이고, 고려하려면 false입니다.

반환

지정된 구성 요소 형식에 대한 클래스의 이름을 포함하는 String 입니다.

예외

component이(가) null인 경우

component 는 크로스 프로세스 원격 개체입니다.

설명

일반적으로 이 메서드는 매개 변수 형식의 전체 Type 이름을 component 반환합니다. 예를 들어 단추의 클래스 이름은 "System.Windows입니다. Forms. Button"을 선택합니다. 매개 변수가 를 component 구현하는 ICustomTypeDescriptor경우 대체 이름을 반환할 수 있습니다.

추가 정보

적용 대상