共用方式為


DeployedDac.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 = DeployedDac.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
Returns SfcObjectFactory object that is used to create new instances.

範例

VC#

obFactory = deployedDac.GetObjectFactory();

VB

obFactory = deployedDac.GetObjectFactory()

PowerShell

$obFactory = $deployedDac.GetObjectFactory() 

請參閱

參考

DeployedDac 類別

Microsoft.SqlServer.Management.Utility 命名空間