Freigeben über


GetObjectFactory-Methode

Gets the factory object used to create new instances.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public Shared Function GetObjectFactory As SfcObjectFactory
'Usage
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

Rückgabewert

Typ: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcObjectFactory
Returns a SfcObjectFactory object that is used to create new instances.

Beispiele

VC#

obFactory = deployedDac.GetObjectFactory();

VB

obFactory = deployedDac.GetObjectFactory()

PowerShell

$obFactory = $deployedDac.GetObjectFactory()