Partilhar via


ResourceContentManager.OpenStream Method

Opens a stream for reading the specified resource. Derived classes can replace this to implement pack files or asset compression.

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

Syntax

protected override Stream OpenStream (
         string assetName
)

Parameters

  • assetName
    The name of the asset being read.

Return Value

The opened stream.

Exceptions

Exception type Condition
ContentLoadException Error loading assetName. The resource was not a binary resource, or the resource was not found.

See Also

Reference

ResourceContentManager Class
ResourceContentManager Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista