Bagikan melalui


ContentTypeReader.Read Method

Reads a strongly typed object from the current stream.

Syntax

'Declaration
Protected Internal MustOverride Function Read ( _
         input As ContentReader, _
         existingInstance As Object _
) As Object 
protected internal abstract Object Read (
         ContentReader input,
         Object existingInstance
)
protected:
internal:
Object Read(
         ContentReader input,
         Object existingInstance
) abstract

Parameters

  • input
    Type: ContentReader
    The ContentReader used to read the object.
  • existingInstance
    Type: Object
    The object receiving the data, or null if a new instance of the object should be created.

Return Value

Type: Object
The object that was read.

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone