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




com
The ArcGIS Server COM object to convert.
serverContext
The ArcGIS Server context that will perform the conversion. Has to be of type IServerContext.
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 serverContext As Object, _
   ByVal proxyType As Type _
) As Object
Visual Basic (Usage)Copy Code
Dim com As Object
Dim serverContext As Object
Dim proxyType As Type
Dim value As Object
 
value = Converter.ComObjectToValueObject(com, serverContext, proxyType)
C# 
public static object ComObjectToValueObject( 
   object com,
   object serverContext,
   Type proxyType
)

Parameters

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

Return Value

The converted value object.

Remarks

For a discussion of conversions in the ArcGIS Server Web ADF, see the topic Converting between data types in the Web ADF Developer Help (also available online at the ArcGIS Server resource center).

See Also

© 2010 All Rights Reserved.