CustomXMLValidationErrors.Add Method
Adds a CustomXMLValidationError object containing an XML validation error to the CustomXMLValidationErrors collection.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub Add ( _
Node As CustomXMLNode, _
ErrorName As String, _
ErrorText As String, _
ClearedOnUpdate As Boolean _
)
'Usage
Dim instance As CustomXMLValidationErrors
Dim Node As CustomXMLNode
Dim ErrorName As String
Dim ErrorText As String
Dim ClearedOnUpdate As Boolean
instance.Add(Node, ErrorName, ErrorText, _
ClearedOnUpdate)
void Add(
CustomXMLNode Node,
string ErrorName,
string ErrorText,
bool ClearedOnUpdate
)
Parameters
Node
Type: Microsoft.Office.Core.CustomXMLNodeRepresents the node where the error occurred.
ErrorName
Type: System.StringContains the name of the error.
ErrorText
Type: System.StringContains the descriptive error text.
ClearedOnUpdate
Type: System.BooleanSpecifies whether the error is to be cleared from the CustomXMLValidationErrors collection when the XML is corrected and updated.
See Also
Reference
CustomXMLValidationErrors Interface