次の方法で共有


ContentManager.OpenStream Method

Opens a stream for reading the specified asset. 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 virtual Stream OpenStream (
         string assetName
)

Parameters

  • assetName
    The name of the asset being read.

Return Value

The opened stream.

Exceptions

Exception type Condition
ContentLoadException Unable to open the file containing assetName, or the file was not found.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista