共用方式為


ContentWriter.WriteSharedResource Generic Method

Note

This generic method is available only when developing for Windows.

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

Syntax

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

Type Parameters

  • T
    The type of value.

Parameters

  • value
    Type: T
    The object to record.

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

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

Platforms

Windows 7, Windows Vista, Windows XP