TitleContainer.OpenStream Method

Returns a stream to an existing file in the default title storage location.

Syntax

'Declaration
Public Shared Function OpenStream ( _
         name As String _
) As Stream 
public static Stream OpenStream (
         string name
)
public:
static Stream OpenStream(
         String name
)

Parameters

  • name
    Type: String
    The name of the file to open.

Return Value

Type: Stream
The file stream that can be used to read the file's data.

Remarks

The stream returned is read-only. The file to be read must already exist, or this method will fail.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

TitleContainer Class
TitleContainer Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone