Share via


Computer.GetObjectFactory Method

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 = Computer.GetObjectFactory()
public static SfcObjectFactory GetObjectFactory()
public:
static SfcObjectFactory^ GetObjectFactory()
static member GetObjectFactory : unit -> SfcObjectFactory
public static function GetObjectFactory() : SfcObjectFactory

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectFactory
A SfcObjectFactory object that is used to create new instances.

Examples

VC#

obFactory = computer.GetObjectFactory();

VB

obFactory = computer.GetObjectFactory()

PowerShell

$obFactory = $computer.GetObjectFactory() 

See Also

Reference

Computer Class

Microsoft.SqlServer.Management.Utility Namespace