RegistrationServices.UnregisterTypeForComClients(Int32) 方法
定义
删除对使用 RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) 方法注册的类型的引用。Removes references to a type registered with the RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) method.
public:
virtual void UnregisterTypeForComClients(int cookie);
[System.Runtime.InteropServices.ComVisible(false)]
public virtual void UnregisterTypeForComClients (int cookie);
[System.Runtime.InteropServices.ComVisible(false)]
[System.Security.SecurityCritical]
public virtual void UnregisterTypeForComClients (int cookie);
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member UnregisterTypeForComClients : int -> unit
override this.UnregisterTypeForComClients : int -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Security.SecurityCritical>]
abstract member UnregisterTypeForComClients : int -> unit
override this.UnregisterTypeForComClients : int -> unit
Public Overridable Sub UnregisterTypeForComClients (cookie As Integer)
参数
- cookie
- Int32
对 RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) 方法重载的先前调用所返回的 Cookie 值。The cookie value returned by a previous call to the RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) method overload.
- 属性
注解
请注意,不支持使用平台调用来调用非托管的 CoRegisterClassObject 和 CoDisconnectObject 方法来注册和取消注册 COM 对象。Note that using platform invoke to call the unmanaged CoRegisterClassObject and CoDisconnectObject methods to register and unregister COM objects is not supported.