Freigeben über


VolumeCollection-Klasse

The VolumeCollection class represents a collection of Volume objects that represent all the volumes on a computer.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<Volume, Volume.Key, Computer>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<Volume, Volume.Key, Computer>
      Microsoft.SqlServer.Management.Utility.VolumeCollection

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public NotInheritable Class VolumeCollection _
    Inherits SfcCollatedDictionaryCollection(Of Volume, Volume.Key, Computer)
'Usage
Dim instance As VolumeCollection
public sealed class VolumeCollection : SfcCollatedDictionaryCollection<Volume, Volume.Key, Computer>
public ref class VolumeCollection sealed : public SfcCollatedDictionaryCollection<Volume^, Volume.Key^, Computer^>
[<SealedAttribute>]
type VolumeCollection =  
    class 
        inherit SfcCollatedDictionaryCollection<Volume, Volume.Key, Computer>
    end
public final class VolumeCollection extends SfcCollatedDictionaryCollection<Volume, Volume.Key, Computer>

Der VolumeCollection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode VolumeCollection(Computer) Initializes a new instance of the VolumeCollection class on the specified computer.
Öffentliche Methode VolumeCollection(Computer, IComparer<String>) Initializes a new instance of the VolumeCollection class on the specified computer and with the specified comparer interface.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Ascending Gets or sets a value indicating whether to sort in ascending order. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Eigenschaft Count Gets the number of elements contained in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Geschützte Eigenschaft Initialized Gets a value indicating whether the collection has been initialized. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Eigenschaft IsReadOnly Gets a value indicating whether the collection is read-only. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Eigenschaft IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Eigenschaft Item[K] Gets the item specified by the key. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Eigenschaft Item[String] Returns the object with the specified name in the collection
Geschützte Eigenschaft Parent Gets or sets the type of the parent object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Eigenschaft SyncRoot Gets or sets an object that can be used to synchronize access to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add Adds the specified object to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Methode Clear Removes all items from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Methode Contains(T) Determines whether the collection contains the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Methode Contains(String) Determines whether the referenced collection contains the specified string.
Öffentliche Methode CopyTo(array<T[], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Methode CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetEnumerator Returns an enumerator that can iterate through the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode Refresh() Refreshes the collection by creating new and merging existing objects and properties in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Methode Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Methode Remove Removes the specified object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Geschützte Methode RemoveInternal Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Geschützte Methode Rename Renames the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode TryGetValue Gets the value associated with the specified key. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IComparer<K>.Compare Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Compares two keys. (Geerbt von SfcCollatedDictionaryCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft IListSource.ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode IEnumerable.GetEnumerator Gets an enumerator that can iterate the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode IListSource.GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.Add Adds the specified object to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.AddShadow Adds the specified object to the shadow collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection.Count Gets the number of items contained in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.EnsureInitialized Initializes the collection from the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.FinishMerge Swaps the new collection for the old collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.GetElementFactory Gets the factory that is used to instantiate objects for the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.GetExisting Uses the specified key to retrieve an existing item from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection.Initialized Gets or sets a value indicating whether the collection has been initialized. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection.Parent Gets the parent object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.PrepareMerge Prepares to merge fresh query results into the existing collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.Remove Removes the specified object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.RemoveElement Removes the specified element from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection.Rename Renames the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection<T, K, ParentT>.)

Zum Anfang

Hinweise

A Volume object can be used to gain access to a set of computers. The Volume object represents a volume on a computer.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Utility-Namespace