ContentTypeWriter Constructor

Note

This constructor is available only when developing for Windows.

Initializes a new instance of the ContentTypeWriter class.

Syntax

'Declaration
Protected Sub New ( _
         targetType As Type _
)
protected ContentTypeWriter (
         Type targetType
)
protected:
ContentTypeWriter(
         Type targetType
)

Parameters

Exceptions

Exception type Condition
ArgumentException
  • Cannot serialize type targetType. Pointers and references are not supported.
  • targetType cannot be serialized because not all the generic type parameters have been specified.
ArgumentNullException targetType is null.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

ContentTypeWriter Class
ContentTypeWriter Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler Namespace

Platforms

Windows 7, Windows Vista, Windows XP