แก้ไข

แชร์ผ่าน


XmlSchemaValidator.SkipToEndElement(XmlSchemaInfo) Method

Definition

Skips validation of the current element content and prepares the XmlSchemaValidator object to validate content in the parent element's context.

public:
 void SkipToEndElement(System::Xml::Schema::XmlSchemaInfo ^ schemaInfo);
public void SkipToEndElement (System.Xml.Schema.XmlSchemaInfo? schemaInfo);
public void SkipToEndElement (System.Xml.Schema.XmlSchemaInfo schemaInfo);
member this.SkipToEndElement : System.Xml.Schema.XmlSchemaInfo -> unit
Public Sub SkipToEndElement (schemaInfo As XmlSchemaInfo)

Parameters

schemaInfo
XmlSchemaInfo

An XmlSchemaInfo object whose properties are set if the current element content is successfully skipped. This parameter can be null.

Exceptions

The SkipToEndElement(XmlSchemaInfo) method was not called in the correct sequence. For example, calling SkipToEndElement(XmlSchemaInfo) after calling SkipToEndElement(XmlSchemaInfo).

Remarks

The following are important notes to consider when using the SkipToEndElement method.

  • The SkipToEndElement method skips validation of the current element content and prepares the XmlSchemaValidator object to validate content in the parent element's context; it is equivalent to skipping validation for all the children of the current element and then calling the ValidateEndElement method.

  • If the current element content is successfully skipped, the XmlSchemaInfo object's (if specified) Validity property is set to NotKnown.

Note

No validation errors are reported on skipped content.

Applies to

See also