Sdílet prostřednictvím


IntermediateSerializer.Serialize Generic Method

Note

This generic method is available only when developing for Windows.

Serializes an object into an intermediate XML file.

Syntax

'Declaration
Public Shared Sub Serialize(Of T) ( _
         output As XmlWriter, _
         value As T, _
         referenceRelocationPath As String _
)
public static void Serialize<T> (
         XmlWriter output,
         T value,
         string referenceRelocationPath
)
public:
generic<typename T>
static void Serialize(
         XmlWriter output,
         T value,
         String referenceRelocationPath
)

Type Parameters

  • T
    The type of value.

Parameters

  • output
    Type: XmlWriter
    The output XML stream.
  • value
    Type: T
    The object to be serialized.
  • referenceRelocationPath
    Type: String
    Final name of the output file, used to relative encode external reference filenames.

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

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

Platforms

Windows 7, Windows Vista, Windows XP