次の方法で共有


ContentSerializerAttribute.SharedResource Property

Indicates whether this member is referenced from multiple parents and should be serialized as a unique ID reference (default=false).

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public bool SharedResource { get; set; }

Property Value

true if this member is referenced from multiple parents; false otherwise.

Example

ContentSerializerAttribute with SharedResource set true.

[ContentSerializerAttribute( SharedResource = true )]

See Also

Reference

ContentSerializerAttribute Class
ContentSerializerAttribute Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista