Skip to content

Latest commit

 

History

History
46 lines (22 loc) · 1.05 KB

963b941a-0b93-fc02-c150-747975005561.md

File metadata and controls

46 lines (22 loc) · 1.05 KB

CustomXMLSchema.Reload Method (Office)

Reloads a schema from a file.

Syntax

expression. Reload

expression An expression that returns a CustomXMLSchema object.

Remarks

Typically, this method is used to update the location of the schema or to determine if the schema is still valid. It is also useful for reloading a schema that frequently changes. If this action is attempted on a schema in a collection that is already validated or tied to a data stream, then the operation is not performed and an error message is displayed.

Example

The following example specifies the location of the schema and then reloads it.

Dim objCustomXMLSchema As  CustomXMLSchema 
Dim strSchemaLocation As String 
' Set the location of the schema.. 
objCustomXMLSchema.Location = "c:\mySchema.xsd" 
 
' Reload the schema. 
objCustomXMLSchema.Reload 

See also

Concepts

CustomXMLSchema Object

Other resources

CustomXMLSchema Object Members