Share via


PropertyDictionary.GetValueStream Method

Gets the value of the property with the specified key, as a System.IO.Stream.

Syntax

'Declaration
Public Function GetValueStream ( _
         key As String _
) As Stream 
public Stream GetValueStream (
         string key
)
public:
Stream GetValueStream(
         String key
)

Parameters

Return Value

Type: Stream
The value of the property associated with the specified key, as a Stream.

Remarks

If the value that corresponds to the specified key cannot be represented by a Stream, an InvalidCastException will be thrown. A KeyNotFoundException will be thrown if the key does not exist.

Requirements

Namespace: Microsoft.Xna.Framework.GamerServices

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

See Also

Reference

PropertyDictionary Class
PropertyDictionary Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Windows Phone