GetSubStorages Method

StorageInfo.GetSubStorages Method ()

 

Returns an array of the child sub-stores that are currently contained in this store.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public StorageInfo[] GetSubStorages()

Return Value

Type: System.IO.Packaging.StorageInfo[]

An array of StorageInfo objects, each pointing to a sub-store defined within this store.

GetSubStorages will always return a StorageInfo array, but the array may be empty (zero-length) if there are no sub-stores.

GetSubStorages provides a snapshot of the sub-stores currently defined in this store. The individual StorageInfo objects will reflect the updated state of their respective stores, but the returned array will not be updated with any additions or deletions. Call GetSubStorages again to obtain an updated array as sub-stores added or deleted to the store.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft