Share via


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

Concepts

MetaProperties Object

MetaProperties Object Members