ContentSerializerCollectionItemNameAttribute Constructor

Creates a new instance of ContentSerializerCollectionItemNameAttribute.

Syntax

'Declaration
Public Sub New ( _
         collectionItemName As String _
)
public ContentSerializerCollectionItemNameAttribute (
         string collectionItemName
)
public:
ContentSerializerCollectionItemNameAttribute(
         String collectionItemName
)

Parameters

  • collectionItemName
    Type: String
    The name for each item in the collection.

Exceptions

Exception type Condition
ArgumentNullException collectionItemName is null.

Example

        [ContentSerializerCollectionItemNameAttribute( "CollectionItem" )]
      

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone