共用方式為


IntermediateWriter.WriteObject Generic Method (T, ContentSerializerAttribute, ContentTypeSerializer)

Note

This generic method is available only when developing for Windows.

Writes a single object to the output XML stream, using the specified type hint.

Syntax

'Declaration
Public Sub WriteObject(Of T) ( _
         value As T, _
         format As ContentSerializerAttribute, _
         typeSerializer As ContentTypeSerializer _
)
public void WriteObject<T> (
         T value,
         ContentSerializerAttribute format,
         ContentTypeSerializer typeSerializer
)
public:
generic<typename T>
void WriteObject(
         T value,
         ContentSerializerAttribute format,
         ContentTypeSerializer typeSerializer
)

Type Parameters

  • T
    The type of value to write.

Parameters

Requirements

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

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

See Also

Reference

IntermediateWriter Class
IntermediateWriter Members
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate Namespace

Platforms

Windows 7, Windows Vista, Windows XP