XmlSchemaValidator.GetExpectedAttributes メソッド

定義

現在の要素コンテキストに必要な属性を返します。

public:
 cli::array <System::Xml::Schema::XmlSchemaAttribute ^> ^ GetExpectedAttributes();
public System.Xml.Schema.XmlSchemaAttribute[] GetExpectedAttributes();
member this.GetExpectedAttributes : unit -> System.Xml.Schema.XmlSchemaAttribute[]
Public Function GetExpectedAttributes () As XmlSchemaAttribute()

返品

XmlSchemaAttributeオブジェクトの配列。必要な属性がない場合は空の配列。

注釈

GetExpectedAttributesメソッドを使用する際に考慮すべき重要な注意事項を次に示します。

  • GetExpectedAttributes メソッドの直後に ValidateElement メソッドが呼び出されると、XML ドキュメントに表示されるすべての属性が返されます。

  • GetExpectedAttributes メソッドが ValidateAttribute メソッドの 1 つ以上の呼び出しの後に呼び出された場合、現在の要素に対してまだ検証されていない属性が返されます。

適用対象

こちらもご覧ください