ManagedInstance.GetObjectFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()