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[]

XmlSchemaAttribute オブジェクトの配列。または、予期される属性がない場合は空の配列。

注釈

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

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

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

適用対象

こちらもご覧ください