MetaProperties.Validate method (Office)

Validates all of the properties in a MetaProperties collection object according to a schema.

Syntax

expression.Validate

expression An expression that returns a MetaProperties object.

Return value

String

Remarks

If any of the properties 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 all of the properties of the object and returns the result.

Function ValidateMetaProperties(ByVal metaProps As MetaProperties) As String 
Dim result As String 
 
result = metaProps.Validate 
ValidateMetaProperties = 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.