Méthode Computer.GetObjectFactory
Gets the factory object used to create new instances.
Espace de noms : Microsoft.SqlServer.Management.Utility
Assembly : Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Syntaxe
'Déclaration
Public Shared Function GetObjectFactory As SfcObjectFactory
'Utilisation
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
Valeur de retour
Type : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectFactory
A SfcObjectFactory object that is used to create new instances.
Exemples
VC#
obFactory = computer.GetObjectFactory();
VB
obFactory = computer.GetObjectFactory()
PowerShell
$obFactory = $computer.GetObjectFactory()