Dela via


ContentTypeReaderManager.GetTypeReader Method

Looks up a reader for the specified type.

Syntax

'Declaration
Public Function GetTypeReader ( _
         targetType As Type _
) As ContentTypeReader 
public ContentTypeReader GetTypeReader (
         Type targetType
)
public:
ContentTypeReader GetTypeReader(
         Type targetType
)

Parameters

  • targetType
    Type: Type
    The type the reader will handle.

Return Value

Type: ContentTypeReader
The created ContentTypeReader.

Exceptions

Exception type Condition
ContentLoadException Cannot find the requested ContentTypeReader.
ArgumentNullException targetType cannot be null.

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone