StreamStatePersistenceService.GetStream Method (String, Boolean)

Retrieves the Stream to use as the storage for the State, specifying whether the stream should be disposed after usage.

Namespace: Microsoft.Practices.CompositeUI.Services
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Protected Overridable Function GetStream ( _
    id As String, _
    <OutAttribute> ByRef shouldDispose As Boolean _
) As Stream
'Usage
Dim id As String
Dim shouldDispose As Boolean
Dim returnValue As Stream

returnValue = Me.GetStream(id, shouldDispose)
protected virtual Stream GetStream (
    string id,
    out bool shouldDispose
)
protected:
virtual Stream^ GetStream (
    String^ id, 
    [OutAttribute] bool% shouldDispose
)
protected Stream GetStream (
    String id, 
    /** @attribute OutAttribute() */ /** @ref */ boolean shouldDispose
)
JScript does not support passing value-type arguments by reference.

Parameters

  • id
    The identifier of the associated State.
  • shouldDispose
    A value indicating if the stream will be disposed after usage.

Return Value

The storage stream.

See Also

Reference

StreamStatePersistenceService Class
StreamStatePersistenceService Members
Microsoft.Practices.CompositeUI.Services Namespace