Computer.GetObjectFactory 方法

Gets the factory object used to create new instances.

命名空间:  Microsoft.SqlServer.Management.Utility
程序集:  Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)

语法

声明
Public Shared Function GetObjectFactory As SfcObjectFactory
用法
Dim returnValue As SfcObjectFactory 

returnValue = Computer.GetObjectFactory()
public static SfcObjectFactory GetObjectFactory()
public:
static SfcObjectFactory^ GetObjectFactory()
static member GetObjectFactory : unit -> SfcObjectFactory
public static function GetObjectFactory() : SfcObjectFactory

返回值

类型:Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectFactory
A SfcObjectFactory object that is used to create new instances.

示例

VC#

obFactory = computer.GetObjectFactory();

VB

obFactory = computer.GetObjectFactory()

PowerShell

$obFactory = $computer.GetObjectFactory() 

请参阅

参考

Computer 类

Microsoft.SqlServer.Management.Utility 命名空间