ServicedComponent.DisposeObject(ServicedComponent) 方法

定义

完成对象并移除关联的 COM+ 引用。Finalizes the object and removes the associated COM+ reference.

public:
 static void DisposeObject(System::EnterpriseServices::ServicedComponent ^ sc);
public static void DisposeObject (System.EnterpriseServices.ServicedComponent sc);
static member DisposeObject : System.EnterpriseServices.ServicedComponent -> unit
Public Shared Sub DisposeObject (sc As ServicedComponent)

参数

sc
ServicedComponent

要释放的对象。The object to dispose.

注解

最好使用 Dispose 设计模式而不是 DisposeObjectIt is preferable to use the Dispose design pattern rather than DisposeObject.

适用于