XmlSchemaValidator.GetExpectedAttributes Método
Definição
Retorna os atributos esperados para o contexto do elemento atual.Returns the expected attributes for the current element context.
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()
Retornos
Uma matriz de objetos XmlSchemaAttribute ou uma matriz vazia se não houver atributos esperados.An array of XmlSchemaAttribute objects or an empty array if there are no expected attributes.
Comentários
Veja a seguir as observações importantes a serem consideradas ao usar o GetExpectedAttributes método.The following are important notes to consider when using the GetExpectedAttributes method.
Se o GetExpectedAttributes método for chamado imediatamente após o ValidateElement método, todos os atributos que podem aparecer no documento XML serão retornados.If the GetExpectedAttributes method is called immediately after the ValidateElement method, all the attributes that could appear in the XML document are returned.
Se o GetExpectedAttributes método for chamado após uma ou mais chamadas para o ValidateAttribute método, os atributos que ainda não foram validados para o elemento atual serão retornados.If the GetExpectedAttributes method is called after one or more calls to the ValidateAttribute method, the attributes that haven't yet been validated for the current element are returned.