RegistrationServices 클래스

정의

COM에서 사용할 관리되는 어셈블리의 등록 및 등록 취소를 위한 서비스 집합을 제공합니다.

public ref class RegistrationServices : System::Runtime::InteropServices::IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
[System.Runtime.InteropServices.ComVisible(true)]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("475e398f-8afa-43a7-a3be-f4ef8d6787c9")]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
type RegistrationServices = class
    interface IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type RegistrationServices = class
    interface IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("475e398f-8afa-43a7-a3be-f4ef8d6787c9")>]
type RegistrationServices = class
    interface IRegistrationServices
Public Class RegistrationServices
Implements IRegistrationServices
상속
RegistrationServices
특성
구현

설명

COM 클라이언트에서 어셈블리 내에 있는 개체를 사용 하는 경우 등록 해야 합니다. Regasm.exe(어셈블리 등록 도구) 및 Microsoft Visual Studio 2005는 클래스에서 노출하는 메서드를 사용하여 RegistrationServices 관리되는 어셈블리에 대한 COM 사용 레지스트리 항목을 추가하거나 제거합니다.

다음 방법을 사용하여 등록 파일을 준비할 수 있습니다.

이러한 메서드는 등록 파일에서 사용할 정보를 수집하는 데 도움이 되지만 실제로 등록 파일을 생성하지는 않습니다. 대신 이 작업을 수행하는 옵션과 함께Regasm.exe(어셈블리 등록 도구) 도구를 사용할 수 /regfile 있습니다. RegistrationServices 메서드는 형식 라이브러리를 내보내고 등록할 수 없습니다. 형식 라이브러리를 내보내고 등록하려면 Regasm.exe(어셈블리 등록 도구) 도구와 Tlbexp.exe(형식 라이브러리 내보내기) 도구를 사용할 수 있습니다.

생성자

RegistrationServices()

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

메서드

Equals(Object)

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

(다음에서 상속됨 Object)
GetHashCode()

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

(다음에서 상속됨 Object)
GetManagedCategoryGuid()

관리되는 클래스가 들어 있는 COM 범주의 GUID를 반환합니다.

GetProgIdForType(Type)

지정된 형식에 대한 COM ProgID를 검색합니다.

GetRegistrableTypesInAssembly(Assembly)

RegisterAssembly(Assembly, AssemblyRegistrationFlags)를 호출하여 등록되는 어셈블리의 클래스 목록을 검색합니다.

GetType()

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

(다음에서 상속됨 Object)
MemberwiseClone()

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

(다음에서 상속됨 Object)
RegisterAssembly(Assembly, AssemblyRegistrationFlags)

COM에서 만들 수 있도록 클래스를 관리되는 어셈블리에 등록합니다.

RegisterTypeForComClients(Type, Guid)

지정된 GUID를 사용하여 COM에 지정된 형식을 등록합니다.

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

지정된 실행 컨텍스트와 연결 형식을 사용하여 지정된 형식을 COM에 등록합니다.

ToString()

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

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

형식이 ComImportAttribute로 표시되거나, ComImportAttribute로 표시된 형식에서 파생되어 부모와 같은 GUID를 공유하는지 나타냅니다.

TypeRequiresRegistration(Type)

지정된 형식을 등록해야 하는지 여부를 확인합니다.

UnregisterAssembly(Assembly)

관리되는 어셈블리의 클래스 등록을 취소합니다.

UnregisterTypeForComClients(Int32)

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) 메서드를 사용하여 등록된 형식에 대한 참조를 제거합니다.

적용 대상

추가 정보