Konstruktor Volume (Computer, String)
Inicjuje nowe wystąpienie Volume klasy z określonego połączenia.
Przestrzeń nazw: Microsoft.SqlServer.Management.Utility
Zestaw: Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)
Składnia
'Deklaracja
Public Sub New ( _
parent As Computer, _
name As String _
)
'Użycie
Dim parent As Computer
Dim name As String
Dim instance As New Volume(parent, _
name)
public Volume(
Computer parent,
string name
)
public:
Volume(
Computer^ parent,
String^ name
)
new :
parent:Computer *
name:string -> Volume
public function Volume(
parent : Computer,
name : String
)
Parametry
- parent
Typ: Microsoft.SqlServer.Management.Utility.Computer
A Computer wartość określająca komputer, który jest elementem nadrzędnym Volume obiektu.
- name
Typ: System.String
A String wartość, która określa nazwę woluminu.
Uwagi
Podaj nazwę woluminu i komputera, który znajduje się na woluminie.
Przykłady
VC #
Volume volume;
volume = new Volume(computer, "Volume_1");
VB
Dim volume As Volume
volume = New Volume(computer, "Volume_1")
PowerShell
$volume = New-Object Microsoft.SqlServer.Management.Common.Volume(computer, "Volume_1")
Zobacz także