ServicedComponent.DisposeObject(ServicedComponent) 方法

定义

完成对象并删除关联的 COM+ 引用。

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

要释放的对象。

注解

最好使用 Dispose 设计模式,而不是 DisposeObject使用。

适用于