共用方式為


IntermediateWriter.WriteSharedResource Generic Method

Note

This generic method is available only when developing for Windows.

Adds a shared reference to the output XML and records the object to be serialized later.

Syntax

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

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