次の方法で共有


GetObjectFactory メソッド

新しいインスタンスを作成するために使用されるファクトリ オブジェクトを取得します。

名前空間:  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

説明

新しいインスタンスを作成するために使用される SfcObjectFactory オブジェクトを返します。

使用例

VC#

obFactory = computer.GetObjectFactory();

VB

obFactory = computer.GetObjectFactory()

PowerShell

$obFactory = $computer.GetObjectFactory()