This document is archived and information here might be outdated.  Recommended version.


IMetadataValidator.Validate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IM > IMetadataValidator Interface > IMetadataValidator.Validate Method
ArcGIS Developer Help

IMetadataValidator.Validate Method

Validates metadata.

[Visual Basic .NET]
Public Function Validate ( _
    ByVal pPropertySet As IPropertySet, _
    ByVal silent As Boolean, _
    ByRef failureReasons As String _
) As Boolean
[C#]
public bool Validate (
    IPropertySet pPropertySet,
    bool silent,
    ref string failureReasons
);

Product Availability

Available with ArcGIS Desktop.

Remarks

The pPropertySet parameter should be an XmlPropertySet instance containing an ArcGIS item�s metadata. The Validate method returns a Boolean indicating whether the metadata was successfully validated.

The validation rules are determined by the class� implementation. For example, the GNValidator class validates metadata based on the requirements for an ArcIMS Metadata Service if its validate property is set to true. When this is the case title, extent, publisher, theme, and content type are required in an item�s metadata, as described in the Desktop Help topic �Publishing requirements�.

In addition to the return value indicating success, the output failureReasons parameter is populated with a string containing the reasons for failure. With the GNValidator class, the reasons are end-line delimited.

 

See Also

IMetadataValidator Interface