RegistrationServices.RegisterTypeForComClients 메서드

정의

지정된 형식을 COM에 등록합니다.

오버로드

RegisterTypeForComClients(Type, Guid)

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

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

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

설명

플랫폼 호출을 사용하여 관리 CoRegisterClassObject 되지 않는 를 호출하고 CoDisconnectObject COM 개체의 등록 및 등록 취소를 위한 메서드는 지원되지 않습니다.

RegisterTypeForComClients(Type, Guid)

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

public:
 virtual void RegisterTypeForComClients(Type ^ type, Guid % g);
public virtual void RegisterTypeForComClients (Type type, ref Guid g);
[System.Security.SecurityCritical]
public virtual void RegisterTypeForComClients (Type type, ref Guid g);
abstract member RegisterTypeForComClients : Type * Guid -> unit
override this.RegisterTypeForComClients : Type * Guid -> unit
[<System.Security.SecurityCritical>]
abstract member RegisterTypeForComClients : Type * Guid -> unit
override this.RegisterTypeForComClients : Type * Guid -> unit
Public Overridable Sub RegisterTypeForComClients (type As Type, ByRef g As Guid)

매개 변수

type
Type

COM에서 사용하기 위해 등록할 Type입니다.

g
Guid

지정된 형식을 등록하는 데 사용된 Guid입니다.

구현

특성

예외

type 매개 변수가 null인 경우

type 매개 변수를 만들 수 없는 경우

설명

이 메서드는 호출할 때와 동일한 CoRegisterClassObject COM.에서 메서드는 RegisterTypeForComClients 원자성이 아니며 다중 스레드 컨텍스트에서 사용될 때 예측할 수 없는 결과를 일으킬 수 있습니다.

버전 2.0 이상에서는 메서드를 UnregisterTypeForComClients 사용하여 COM에서 형식의 등록을 취소합니다.

플랫폼 호출을 사용하여 관리 CoRegisterClassObject 되지 않는 를 호출하고 CoDisconnectObject COM 개체의 등록 및 등록 취소를 위한 메서드는 지원되지 않습니다.

추가 정보

적용 대상

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

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

public:
 virtual int RegisterTypeForComClients(Type ^ type, System::Runtime::InteropServices::RegistrationClassContext classContext, System::Runtime::InteropServices::RegistrationConnectionType flags);
[System.Runtime.InteropServices.ComVisible(false)]
public virtual int RegisterTypeForComClients (Type type, System.Runtime.InteropServices.RegistrationClassContext classContext, System.Runtime.InteropServices.RegistrationConnectionType flags);
[System.Runtime.InteropServices.ComVisible(false)]
[System.Security.SecurityCritical]
public virtual int RegisterTypeForComClients (Type type, System.Runtime.InteropServices.RegistrationClassContext classContext, System.Runtime.InteropServices.RegistrationConnectionType flags);
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member RegisterTypeForComClients : Type * System.Runtime.InteropServices.RegistrationClassContext * System.Runtime.InteropServices.RegistrationConnectionType -> int
override this.RegisterTypeForComClients : Type * System.Runtime.InteropServices.RegistrationClassContext * System.Runtime.InteropServices.RegistrationConnectionType -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Security.SecurityCritical>]
abstract member RegisterTypeForComClients : Type * System.Runtime.InteropServices.RegistrationClassContext * System.Runtime.InteropServices.RegistrationConnectionType -> int
override this.RegisterTypeForComClients : Type * System.Runtime.InteropServices.RegistrationClassContext * System.Runtime.InteropServices.RegistrationConnectionType -> int
Public Overridable Function RegisterTypeForComClients (type As Type, classContext As RegistrationClassContext, flags As RegistrationConnectionType) As Integer

매개 변수

type
Type

COM에서 사용하기 위해 등록할 Type 개체입니다.

classContext
RegistrationClassContext

실행 코드를 실행할 컨텍스트를 나타내는 RegistrationClassContext 값 중 하나입니다.

flags
RegistrationConnectionType

클래스 개체에 연결하는 방식을 지정하는 RegistrationConnectionType 값 중 하나입니다.

반환

쿠키 값을 나타내는 정수입니다.

특성

예외

type 매개 변수가 null인 경우

type 매개 변수를 만들 수 없는 경우

설명

이 메서드는 호출할 때와 동일한 CoRegisterClassObject COM.에서 메서드는 RegisterTypeForComClients 원자성이 아니며 다중 스레드 컨텍스트에서 사용될 때 예측할 수 없는 결과를 일으킬 수 있습니다.

.NET Framework 버전 2.0 이상에서 메서드를 UnregisterTypeForComClients 사용하여 COM에서 형식의 등록을 취소합니다.

플랫폼 호출을 사용하여 관리 CoRegisterClassObject 되지 않는 를 호출하고 CoDisconnectObject COM 개체의 등록 및 등록 취소를 위한 메서드는 지원되지 않습니다.

적용 대상