Partager via


XMLNode.ValidationStatus Property

Returns a WdXMLValidationStatus constant that represents whether an element or attribute is valid according to the attached schema.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property ValidationStatus As WdXMLValidationStatus
    Get
'Usage
Dim instance As XMLNode
Dim value As WdXMLValidationStatus

value = instance.ValidationStatus
WdXMLValidationStatus ValidationStatus { get; }

Property Value

Type: Microsoft.Office.Interop.Word.WdXMLValidationStatus

Remarks

WdXMLValidationStatus can be one of the following constants:

wdXMLValidationStatusCustom Indicates that the SetValidationError method was used to set ValidationErrorText property to a custom text string.

wdXMLValidationStatusOK Indicates an XML element or attribute is valid according to the attached schema.

While these are the only two named constants the ValidationStatus property allows, there are many more unnamed values that come from the MSXML 5.0 component included with Microsoft Word. For more a complete list of possible values and their corresponding meaning, refer to the Microsoft Word XML Content Development Kit on the Microsoft Developer Network (MSDN) Web site.

See Also

Reference

XMLNode Interface

XMLNode Members

Microsoft.Office.Interop.Word Namespace