TypeProvider.GetType 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Type 추가된 어셈블리 참조 및 코드 컴파일 단위를 검색하여 전달된 정규화된 형식 이름에서 가져옵니다.
오버로드
| Name | Description |
|---|---|
| GetType(String) |
using AddAssembly(Assembly)또는 AddAssemblyReference(String)AddCodeCompileUnit(CodeCompileUnit).에 추가된 어셈블리 집합에서 형식을 |
| GetType(String, Boolean) |
using AddAssembly(Assembly)또는 AddAssemblyReference(String)AddCodeCompileUnit(CodeCompileUnit).에 추가된 어셈블리 집합에서 형식을 |
GetType(String)
using AddAssembly(Assembly)또는 AddAssemblyReference(String)AddCodeCompileUnit(CodeCompileUnit).에 추가된 어셈블리 집합에서 형식을 TypeProvider 가져옵니다.
public:
virtual Type ^ GetType(System::String ^ name);
public Type GetType(string name);
override this.GetType : string -> Type
Public Function GetType (name As String) As Type
매개 변수
- name
- String
형식 이름입니다.
반품
요청된 Type.
구현
예외
name null 참조입니다(Visual Basic Nothing).
설명
이 인스턴스의 어셈블리 및 컴파일된 단위의 캐시 내에서 이름을 확인할 수 없는 경우 null 참조(Visual Basic Nothing)가 반환됩니다. 이 오버로드를 호출하는 것은 매개 변수 값 throwOnError 이 설정된 두 매개 변수 오버로드를 호출하는 것과 같습니다 true.
적용 대상
GetType(String, Boolean)
using AddAssembly(Assembly)또는 AddAssemblyReference(String)AddCodeCompileUnit(CodeCompileUnit).에 추가된 어셈블리 집합에서 형식을 TypeProvider 가져옵니다.
public:
virtual Type ^ GetType(System::String ^ name, bool throwOnError);
public Type GetType(string name, bool throwOnError);
override this.GetType : string * bool -> Type
Public Function GetType (name As String, throwOnError As Boolean) As Type
매개 변수
- name
- String
형식 이름입니다.
- throwOnError
- Boolean
확인할 수 없는 경우 name 예외를 throw할지 여부를 나타내는 값입니다.
반품
요청된 Type.
구현
예외
name null 참조입니다(Visual Basic Nothing).
name 은 확인할 수 없으며 . throwOnError 입니다 true.
설명
이 인스턴스의 어셈블리 및 컴파일된 단위의 캐시 내에서 이름을 확인할 수 없는 경우 null 참조(Nothing)가 반환 throwOnErrorfalse됩니다.