次の方法で共有


XmlArrayItemAttributes クラス

XmlArrayItemAttribute オブジェクトのコレクションを表します。

この型のすべてのメンバの一覧については、XmlArrayItemAttributes メンバ を参照してください。

System.Object
   System.Collections.CollectionBase
      System.Xml.Serialization.XmlArrayItemAttributes

Public Class XmlArrayItemAttributes
   Inherits CollectionBase
[C#]
public class XmlArrayItemAttributes : CollectionBase
[C++]
public __gc class XmlArrayItemAttributes : public CollectionBase
[JScript]
public class XmlArrayItemAttributes extends CollectionBase

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

XmlArrayItemAttributes クラスを使用して、パブリック フィールドまたはパブリックな読み書き可能プロパティによって返される配列に挿入できる派生型を指定できます。

このクラスのインスタンスは、 XmlAttributes クラスの XmlArrayItems プロパティによって返されます。 XmlAttributes クラスは、 XmlArrayAttribute が適用された配列に挿入できる一連の XmlArrayItemAttribute オブジェクトをオーバーライドするときに使用されます。

フィールドまたはプロパティが受け入れる新しい型ごとに XmlArrayItemAttribute を作成し、作成したそのオブジェクトを、 Add を使用して、 XmlArrayItems プロパティによって返される XmlArrayItemAttributes コレクションに追加します。フィールドまたはプロパティを含んでいるオブジェクトの型、それらのフィールドまたはプロパティの名前を指定して Add を使用し、 XmlAttributesXmlAttributeOverrides に追加します。 Serialize メソッドまたは Deserialize メソッドを呼び出す前に、 XmlAttributeOverrides を使用して XmlSerializer を構築します。

必要条件

名前空間: System.Xml.Serialization

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: System.Xml (System.Xml.dll 内)

参照

XmlArrayItemAttributes メンバ | System.Xml.Serialization 名前空間 | XmlSerializer | XmlAttributeOverrides