ResourceContentManager.OpenStream Method
Opens a stream for reading the specified resource. Derived classes can replace this to implement pack files or asset compression.
Syntax
'Declaration
Protected Overrides Function OpenStream ( _
assetName As String _
) As Stream
protected override Stream OpenStream (
string assetName
)
protected:
Stream OpenStream(
String assetName
) override
Parameters
- assetName
Type: String
The name of the asset being read.
Return Value
Type: Stream
The opened stream.
Exceptions
Exception type | Condition |
---|---|
ContentLoadException | Error loading assetName. The resource was not a binary resource, or the resource was not found. |
Requirements
Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
ResourceContentManager Class
ResourceContentManager Members
Microsoft.Xna.Framework.Content Namespace
Platforms
Windows Phone