TypeProvider 클래스

정의

주의

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

지정된 어셈블리와 코드 컴파일 단위 내에서 형식의 컨테이너 역할을 하는 ITypeProvider의 구현입니다.

public ref class TypeProvider sealed : IDisposable, IServiceProvider, System::Workflow::ComponentModel::Compiler::ITypeProvider
public sealed class TypeProvider : IDisposable, IServiceProvider, System.Workflow.ComponentModel.Compiler.ITypeProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class TypeProvider : IDisposable, IServiceProvider, System.Workflow.ComponentModel.Compiler.ITypeProvider
type TypeProvider = class
    interface ITypeProvider
    interface IServiceProvider
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type TypeProvider = class
    interface ITypeProvider
    interface IServiceProvider
    interface IDisposable
Public NotInheritable Class TypeProvider
Implements IDisposable, IServiceProvider, ITypeProvider
상속
TypeProvider
특성
구현

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

ITypeProvider 구현은 컴파일된 어셈블리(및 AddAssemblyReference 메서드)AddAssembly를 처리하는 것 외에도 아직 컴파일되지 않은 형식(AddCodeCompileUnit)을 처리할 수 있습니다. 를 사용하여 CodeCompileUnit참조되는 형식에 System.Type 대해 제한된 구현이 반환됩니다.

참고

TypeProvider 는 참조된 어셈블리에서 public 형식만 반환하고 로컬 어셈블리에서 public 형식과 public이 아닌 형식을 모두 반환합니다.

생성자

TypeProvider(IServiceProvider)

TypeProvider 클래스의 새 인스턴스를 초기화합니다.

속성

AssemblyNameResolver

한 개의 매개 변수와 지정된 형식이 속한 어셈블리 표시 이름을 반환하는 한 개의 반환 값이 있는 메서드를 참조하는 대리자를 가져오거나 설정합니다.

IsSupportedPropertyResolver

지정된 속성이 대상 .NET Framework 지원되는지 여부를 결정하는 두 개의 매개 변수와 하나의 반환 값이 있는 메서드를 참조하는 대리자를 가져오거나 설정합니다.

LocalAssembly

이 인스턴스에 대해 로컬로 정의된 Assembly를 나타내는 값을 가져옵니다.

ReferencedAssemblies

Type으로 참조되는 모든 어셈블리의 컬렉션을 가져옵니다.

TypeLoadErrors

IDictionary의 원인인 Object로 키가 지정된 로드 오류 예외의 Exception를 가져옵니다.

메서드

AddAssembly(Assembly)

이미 로드된 어셈블리를 추가합니다. 호출자는 어셈블리를 로드해야 하며, TypeProvider에는 GetType이 호출되는 경우 분배를 위해 이 어셈블리의 형식이 포함됩니다.

AddAssemblyReference(String)

내부 목록에 Assembly에 대한 참조를 추가합니다. 이 어셈블리는 Type 메서드에서 GetType(String) 조회에 사용됩니다.

AddCodeCompileUnit(CodeCompileUnit)

내부 목록에 CodeCompileUnit에 대한 참조를 추가합니다. 이 CodeCompileUnitType 메서드에서 GetType(String) 조회에 사용됩니다.

Dispose()

TypeProvider에서 사용하는 모든 리소스를 해제합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetAssemblyName(Type)

지정된 형식이 선언된 어셈블리의 어셈블리 표시 이름을 반환합니다.

GetEnumNames(Type)

지정된 Enum의 이름을 인덱싱된 순서대로 포함하는 문자열 배열을 제공합니다.

GetEventHandlerType(EventInfo)

Type에 대한 참조가 지정된 EventHandlerEventInfo을 가져옵니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetService(Type)

지정된 서비스 Object을 제공하는 Type를 가져옵니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetType(String)

AddAssembly(Assembly), AddAssemblyReference(String) 또는 AddCodeCompileUnit(CodeCompileUnit)을 사용하여 TypeProvider에 추가된 어셈블리 집합에서 형식을 가져옵니다.

GetType(String, Boolean)

AddAssembly(Assembly), AddAssemblyReference(String) 또는 AddCodeCompileUnit(CodeCompileUnit)을 사용하여 TypeProvider에 추가된 어셈블리 집합에서 형식을 가져옵니다.

GetTypes()

이 인스턴스에 알려진 각 Type을 포함하는 배열을 만듭니다.

IsAssignable(Type, Type)

한 형식이 다른 형식에 안전하게 할당될 수 있는지 여부를 나타냅니다.

IsEnum(Type)

TypeEnum 형식인지 여부를 나타냅니다.

IsSubclassOf(Type, Type)

Type이 다른 Type의 파생 클래스인지 여부를 나타냅니다.

IsSupportedProperty(PropertyInfo, Object)

지정된 속성이 대상 .NET Framework 지원되는지 여부를 결정하는 값을 반환합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
RefreshCodeCompileUnit(CodeCompileUnit, EventHandler)

이 인스턴스와 연결된 CodeCompileUnit 참조를 업데이트합니다.

RemoveAssembly(Assembly)

이 인스턴스에서 주체 Assembly에 대한 모든 참조를 제거합니다.

RemoveAssemblyReference(String)

이 인스턴스에서 경로 기반의 Assembly 참조를 제거합니다.

RemoveCodeCompileUnit(CodeCompileUnit)

이 인스턴스에서 주체 CodeCompileUnit에 대한 모든 참조를 제거합니다.

SetLocalAssembly(Assembly)

로컬 Assembly의 값을 참조된 Assembly로 설정합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

이벤트

TypeLoadErrorsChanged

컬렉션 TypeLoadErrors가 수정되면 발생합니다.

TypesChanged

정의된 형식의 컬렉션이 수정되면 발생합니다.

적용 대상