Compartilhar via


StorageManager.Drives Property

 

Gets a list of all drives that are defined in for storage.

Namespace:   Microsoft.WindowsServerSolutions.Storage
Assembly:  StorageOM (in StorageOM.dll)

Syntax

public ThreadSafeReadOnlyObservableCollection<Drive> Drives { get; }
public:
property ThreadSafeReadOnlyObservableCollection<Drive^>^ Drives {
    ThreadSafeReadOnlyObservableCollection<Drive^>^ get();
}
Public ReadOnly Property Drives As ThreadSafeReadOnlyObservableCollection(Of Drive)

Property Value

Type: Microsoft.WindowsServerSolutions.Common.ProviderFramework.ThreadSafeReadOnlyObservableCollection<Drive>

An instance of ThreadSafeReadOnlyObservableCollection<T>.

Remarks

Care must be used when the code calls synchronous storage operations from a storage collection changed event handler. The thread that the object model uses to call the event handler will deadlock if a synchronous storage operation is invoked. A different thread, or an approach that uses asynchronous operations, should be used.

See Also

StorageManager Class
Microsoft.WindowsServerSolutions.Storage Namespace

Return to top