MetaProperty.Validate method (Office)

Validates a MetaProperty object representing a single property value according to a schema.

Syntax

expression.Validate

expression An expression that returns a MetaProperty object.

Return value

String

Remarks

If the property is invalid, the test fails and an error message is returned. The schema used for validation is stored as part of the document's Microsoft SharePoint Foundation profile.

Example

In the following example, a MetaProperties object is passed to a validation function. The function then validates the value of a single property represented by its index and returns the result.

Function ValidateMetaProperty(ByVal metaProps As MetaProperties) As String 
Dim result As String 
 
result = metaProps(1).Validate 
ValidateMetaProperty = result 
End Function

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.