AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgResourceIdentifier::Validate (  )  [virtual]

Validates the resource identifier. This method should be called after the identifier has been fully specified by constructor and/or Set methods.

Remarks:
This checks that the syntax of the identifier is correct. It does not check that the specified resource actually exists.
.NET Syntax
virtual void Validate();
Java Syntax
virtual void Validate();
PHP Syntax
virtual void Validate();

Returns:
Returns nothing.
Example (PHP)
 // Assuming $newResourceID has already been created
 $newResourceID->Validate();

Exceptions:
MgInvalidRepositoryTypeException 
MgInvalidRepositoryNameException 
MgInvalidResourcePathException 
MgInvalidResourceNameException 
MgInvalidResourceTypeException