Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Represents a collection of Volume objects.
Namespace: Microsoft.SqlServer.Management.Utility
Assembly: Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)
Syntax
'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny, GetType(Volume))> _
Public ReadOnly Property Volumes As VolumeCollection
Get
'Usage
Dim instance As Computer
Dim value As VolumeCollection
value = instance.Volumes
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny, typeof(Volume))]
public VolumeCollection Volumes { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::OneToAny,
typeof(Volume))]
public:
property VolumeCollection^ Volumes {
VolumeCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny,
typeof(Volume))>]
member Volumes : VolumeCollection
function get Volumes () : VolumeCollection
Eigenschaftswert
Typ: Microsoft.SqlServer.Management.Utility.VolumeCollection
A VolumneCollection object that represents all the Volume objects defined on the computer.
Hinweise
Specific volumes can be referenced by using this collection. To add a new volume to the collection, call the constructor for the Volume object.
Beispiele
VC#
foreach (Volume vol in computer.Volumes)
{
System.Console.WriteLine(vol.Name);
}
VB
For Each vol As Volume In computer.Volumes
System.Console.WriteLine(vol.Name)
Next
PowerShell
foreach($vol in $computer.Volumes)
{
Write-Host $vol.Name
}