Initialize()

XmlSchemaValidator::Initialize() method

Initializes the state of the XmlSchemaValidator object.

void System::Xml::Schema::XmlSchemaValidator::Initialize()

Exceptions

ExceptionDescription
InvalidOperationExceptionCalling the XmlSchemaValidator::Initialize method is valid immediately after the construction of an XmlSchemaValidator object or after a call to XmlSchemaValidator::EndValidation only.

XmlSchemaValidator::Initialize(const SharedPtr<XmlSchemaObject>&) method

Initializes the state of the XmlSchemaValidator object using the XmlSchemaObject specified for partial validation.

void System::Xml::Schema::XmlSchemaValidator::Initialize(const SharedPtr<XmlSchemaObject> &partialValidationType)

Arguments

ParameterTypeDescription
partialValidationTypeconst SharedPtr<XmlSchemaObject>&An XmlSchemaElement, XmlSchemaAttribute, or XmlSchemaType object used to initialize the validation context of the XmlSchemaValidator object for partial validation.

Exceptions

ExceptionDescription
InvalidOperationExceptionCalling the XmlSchemaValidator::Initialize method is valid immediately after the construction of an XmlSchemaValidator object or after a call to XmlSchemaValidator::EndValidation only.
ArgumentExceptionThe XmlSchemaObject parameter is not an XmlSchemaElement, XmlSchemaAttribute, or XmlSchemaType object.
ArgumentNullExceptionThe XmlSchemaObject parameter cannot be nullptr.

See Also