ESRI.ArcGIS.ADF.Web.DataSources.Graphics
CreateFunctionality Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.Graphics Namespace > MapResource Class : CreateFunctionality Method




functionalityType
The interface for the functionality to be created.
functionalityName
Name of the functionality.
Creates the requested functionality.

Syntax

Visual Basic (Declaration) 
Public Function CreateFunctionality( _
   ByVal functionalityType As Type, _
   ByVal functionalityName As String _
) As IGISFunctionality
Visual Basic (Usage)Copy Code
Dim instance As MapResource
Dim functionalityType As Type
Dim functionalityName As String
Dim value As IGISFunctionality
 
value = instance.CreateFunctionality(functionalityType, functionalityName)
C# 
public IGISFunctionality CreateFunctionality( 
   Type functionalityType,
   string functionalityName
)

Parameters

functionalityType
The interface for the functionality to be created.
functionalityName
Name of the functionality.

Return Value

The created functionality.

Exceptions

ExceptionDescription
ArgumentExceptionThrows exception if the functionality type is not supported.

Remarks

Typically this method is used to create a QueryFunctionality for querying the map resource.

Before calling this method, your code should check whether the functionality type is supported by using SupportsFunctionality.

See Also

© 2010 All Rights Reserved.