Computer.GetObjectFactory 方法

定义

获取用于创建新实例的工厂对象。

public:
 static Microsoft::SqlServer::Management::Sdk::Sfc::SfcObjectFactory ^ GetObjectFactory();
public static Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectFactory GetObjectFactory ();
static member GetObjectFactory : unit -> Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectFactory
Public Shared Function GetObjectFactory () As SfcObjectFactory

返回

用于创建新实例的 SfcObjectFactory 对象。

示例

Vc#

obFactory = computer.GetObjectFactory();  

VB

obFactory = computer.GetObjectFactory()  

PowerShell

$obFactory = $computer.GetObjectFactory()   

适用于