次の方法で共有


ContentSerializerAttribute Members

The following tables list the members exposed by the ContentSerializerAttribute type.

Public Constructors

Name Description
Public Method ContentSerializerAttribute Creates a new instance of ContentSerializerAttribute.

Public Properties

Name Description
Public Property AllowNull Get or set a value indicating whether this member can have a null value (default=true).
Public Property CollectionItemName Gets or sets the XML element name for each item in a collection (default = "Item").
Public Property ElementName Gets or sets the XML element name (default=name of the managed type member).
Public Property FlattenContent Gets or sets a value idicating whether to write member contents directly into the current XML context rather than wrapping the member in a new XML element (default=false).
Public Property HasCollectionItemName Indicates whether an explicit CollectionItemName string is being used or the default value.
Public Property Optional Indicates whether to write this element if the member is null and skip past it if not found when deserializing XML (default=false).
Public Property SharedResource Indicates whether this member is referenced from multiple parents and should be serialized as a unique ID reference (default=false).
Public Property TypeId (Inherited from Attribute.)

Public Methods

Name Description
Public Method Clone Creates a copy of the ContentSerializerAttribute.
Public Method Equals (Inherited from Attribute.)
Public Method GetCustomAttribute (Inherited from Attribute.)
Public Method GetCustomAttributes (Inherited from Attribute.)
Public Method GetHashCode (Inherited from Attribute.)
Public Method GetType (Inherited from Object.)
Public Method IsDefaultAttribute (Inherited from Attribute.)
Public Method IsDefined (Inherited from Attribute.)
Public Method Match (Inherited from Attribute.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

ContentSerializerAttribute Class
Microsoft.Xna.Framework.Content Namespace