ESRI.ArcGIS.ADF.ArcGISServer.Local
ComObjectToValueObject Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.ArcGISServer.Local Namespace > Converter Class : ComObjectToValueObject Method




com
The ArcGIS Server COM object to convert.
context
The ArcGIS Server context that will perform the conversion.
proxyType
The .NET proxy type in the Web ADF to convert to.
Converts an ArcGIS Server COM object to its .NET value object equivalent.

Syntax

Visual Basic (Declaration) 
Public Shared Function ComObjectToValueObject( _
   ByVal com As Object, _
   ByVal context As ESRI.ArcGIS.Server.IServerContext, _
   ByVal proxyType As Type _
) As Object
Visual Basic (Usage)Copy Code
Dim com As Object
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim proxyType As Type
Dim value As Object
 
value = Converter.ComObjectToValueObject(com, context, proxyType)
C# 
public static object ComObjectToValueObject( 
   object com,
   ESRI.ArcGIS.Server.IServerContext context,
   Type proxyType
)

Parameters

com
The ArcGIS Server COM object to convert.
context
The ArcGIS Server context that will perform the conversion.
proxyType
The .NET proxy type in the Web ADF to convert to.

Return Value

The converted value object.

Remarks

For a discussion of conversion between value and COM objects with ArcGIS Server see the page ArcGIS Server: COM and Value objects in the Web ADF Developer Help (also available online at the ArcGIS Resource Center.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.