Sdílet prostřednictvím


ContentReader.ReadRawObject Generic Method (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, the method reads data only from the base type.

Syntax

'Declaration
Public Function ReadRawObject(Of T) ( _
         existingInstance As T _
) As T 
public T ReadRawObject<T> (
         T existingInstance
)
public:
generic<typename T>
T ReadRawObject(
         T existingInstance
)

Type Parameters

  • T
    The type of object to read.

Parameters

  • existingInstance
    Type: T
    An existing object to write into.

Return Value

Type: T
The object that was read.

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone