Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VolumeCollection Class

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

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)
public sealed class VolumeCollection : SfcCollatedDictionaryCollection<Volume, Volume..::.Key, Computer>

The VolumeCollection type exposes the following members.

  NameDescription
Public methodVolumeCollection(Computer)Initializes a new instance of the VolumeCollection class on the specified computer.
Public methodVolumeCollection(Computer, IComparer<String>)Initializes a new instance of the VolumeCollection class on the specified computer and with the specified comparer interface.
Top
  NameDescription
Public propertyAscendingGets or sets a value indicating whether to sort in ascending order. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public propertyCountGets the number of elements contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Protected propertyInitializedGets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public propertyIsReadOnlyGets a value indicating whether the collection is read-only. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public propertyIsSynchronizedGets or sets a value indicating whether access to the collection is synchronized (thread safe). Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public propertyItem[K]Gets the item specified by the key. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public propertyItem[String]Returns the object with the specified name in the collection
Protected propertyParentGets or sets the type of the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public propertySyncRootGets or sets an object that can be used to synchronize access to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Top
  NameDescription
Public methodAddAdds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public methodClearRemoves all items from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public methodContains(T)Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public methodContains(String)Determines whether the referenced collection contains the specified string.
Public methodCopyTo(T[], Int32)Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public methodCopyTo(Array, Int32)Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public methodEquals (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can iterate through the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRefresh()Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public methodRefresh(Boolean)Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public methodRemoveRemoves the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Protected methodRemoveInternalMarks 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. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Protected methodRenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Public methodToString (Inherited from Object.)
Public methodTryGetValueGets the value associated with the specified key. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Top
  NameDescription
Explicit interface implemetationPrivate methodIComparer<K>.CompareDo not reference this member directly in your code. It supports the SQL Server infrastructure. Compares two keys. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate propertyIListSource.ContainsListCollectionGets a value indicating whether the collection is a collection of IList objects. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodIListSource.GetListReturns an IList object that can be bound to a data source from an object that does not implement the IList interface. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.AddAdds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.AddShadowAdds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate propertyISfcCollection.CountGets the number of items contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.EnsureInitializedInitializes the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.FinishMergeSwaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.GetCollectionElementNameImplGets the URN suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.GetElementFactoryGets the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.GetExistingUses the specified key to retrieve an existing item from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.GetObjectByKeyUses 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 (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate propertyISfcCollection.InitializedGets or sets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate propertyISfcCollection.ParentGets the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.PrepareMergePrepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.RemoveRemoves the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.RemoveElementRemoves the specified element from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.RenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Top

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.