Export (0) Print
Expand All

StorageInfo.GetStreams Method

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()
You cannot use methods in XAML.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft