StorageInfo.GetStreams Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns an array of the StreamInfo instances that are currently contained in this store.

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

public StreamInfo[] GetStreams()

Return Value

Type: System.IO.Packaging.StreamInfo[]

An array of the StreamInfo objects, each pointing to an I/O steam defined within this store.

GetStreams will always return a StreamInfo array, but the array may be empty (zero-length) if there are no streams defined in the store.

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

.NET Framework
Available since 3.0
Return to top