XmlSchemaValidator.GetExpectedAttributes メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在の要素コンテキストに必要な属性を返します。
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 つ以上の呼び出しの後に呼び出された場合、現在の要素に対してまだ検証されていない属性が返されます。