ServicedComponent.DisposeObject 方法
完成对象并移除关联的 COM+ 引用。
**命名空间:**System.EnterpriseServices
**程序集:**System.EnterpriseServices(在 system.enterpriseservices.dll 中)
语法
声明
Public Shared Sub DisposeObject ( _
sc As ServicedComponent _
)
用法
Dim sc As ServicedComponent
ServicedComponent.DisposeObject(sc)
public static void DisposeObject (
ServicedComponent sc
)
public:
static void DisposeObject (
ServicedComponent^ sc
)
public static void DisposeObject (
ServicedComponent sc
)
public static function DisposeObject (
sc : ServicedComponent
)
参数
- sc
要释放的对象。
备注
比较可取的做法是使用 Dispose 设计模式而不是使用 DisposeObject。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见。
平台
Windows 98、Windows 2000 SP4、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0
请参见
参考
ServicedComponent 类
ServicedComponent 成员
System.EnterpriseServices 命名空间