Share via


MetaProperties.Validate Method

Office Developer Reference

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 the document's Windows SharePoint Services 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.

Visual Basic for Applications
  Function ValidateMetaProperties(ByVal metaProps As MetaProperties) As String
Dim result As String

result = metaProps.Validate ValidateMetaProperties = result End Function

See Also