次の方法で共有


ContentReader.ReadRawObject Generic Method (ContentTypeReader, T)

Reads a single managed object from the current stream as an instance of the specified type. If you specify a base class of the actual object type, this method reads data only from the base type.

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

Syntax

public T ReadRawObject<T> (
         ContentTypeReader typeReader,
         T existingInstance
)

Type Parameters

  • T
    The type of object to read.

Parameters

  • typeReader
    The ContentTypeReader to use to read the object.
  • existingInstance
    An existing object to write into.

Return Value

The object that was read.

Exceptions

Exception type Condition
ArgumentNullException typeReader is null.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista