Partager via


StorageManager.Folders Property

 

Gets a list of all of the folders that are defined in storage.

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

Syntax

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

Property Value

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

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