Udostępnij przez


Konstruktor ManagedInstance

Inicjuje nowe wystąpienie ManagedInstance klasy

Przestrzeń nazw:  Microsoft.SqlServer.Management.Utility
Zestaw:  Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)

Składnia

'Deklaracja
Public Sub New
'Użycie

Dim instance As New ManagedInstance()
public ManagedInstance()
public:
ManagedInstance()
new : unit -> ManagedInstance
public function ManagedInstance()

Uwagi

Konstruktor domyślny inicjuje pola z użyciem ich wartości domyślnych.

Przykłady

VC #

ManagedInstance managedInstance;
managedInstance = new ManagedInstance();

VB

Dim managedInstance As ManagedInstance
managedInstance = New ManagedInstance()

PowerShell

$ManagedInstance = New-Object Microsoft.SqlServer.Management.Utility.ManagedInstance()