Share via


ManagedInstance.GetObjectFactory Method

Definition

Gets the factory object used to create new instances.

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

Returns

A SfcObjectFactory object that is used to create new instances.

Examples

VC#

obFactory = managedInstance.GetObjectFactory();  

VB

obFactory = managedInstance.GetObjectFactory()  

PowerShell

$obFactory = $managedInstance.GetObjectFactory()   

Applies to