This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > ID > IDocumentVersionSupportGEN Interface > IDocumentVersionSupportGEN.ConvertToSupportedObject Method (ArcObjects .NET 10.5 SDK) |
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
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.