ArcObjects Library Reference (System)  

IDocumentVersionSupportGEN.ConvertToSupportedObject Method

Convert the object to another object that is supported.

[Visual Basic .NET]
Public Function ConvertToSupportedObject ( _
    ByVal docVersion As esriArcGISVersion _
) As Object
[C#]
public object ConvertToSupportedObject (
    esriArcGISVersion docVersion
);
[C++]
HRESULT ConvertToSupportedObject(
  esriArcGISVersion docVersion,
  VARIANT* convertedObject
);
[C++]

Parameters

docVersion [in]

  docVersion is a parameter of type esriArcGISVersion

convertedObject [out, retval]   convertedObject is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE.  Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version.  Not all objects will return a supported object; in these cases a null pointer will be returned.

See Also

IDocumentVersionSupportGEN Interface