ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local
SupportsFunctionality Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapResourceLocal Class : SupportsFunctionality Method




functionalityType
The Type of functionality to check, e.g., IQueryFunctionality. Use an interface that derives from IGISFunctionality.
Whether the resource supports the functionality specified.

Syntax

Visual Basic (Declaration) 
Public Overrides Function SupportsFunctionality( _
   ByVal functionalityType As Type _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As MapResourceLocal
Dim functionalityType As Type
Dim value As Boolean
 
value = instance.SupportsFunctionality(functionalityType)
C# 
public override bool SupportsFunctionality( 
   Type functionalityType
)

Parameters

functionalityType
The Type of functionality to check, e.g., IQueryFunctionality. Use an interface that derives from IGISFunctionality.

Return Value

True if supports this functionality, false if not.

Example

For an example of using SupportsFunctionality, see IQueryFunctionality.

Remarks

GIS resources support varying types of functionality to perform services such as querying, geocoding, geoprocessing, creating a scalebar, and returning map tiles. Not all resources support the same functionalities. You can work with functionalities by using the CreateFunctionality method to obtain the functionality object. Before requesting a particular functionality, you should generally use SupportsFunctionality() check to ensure the functionality is supported by the resource.

To check functionality, pass the interface for the functionality type, such as IQueryFunctionality. If the functionality is supported, you can use CreateFunctionality to obtain the functionality object. Typically you can work with the functionality in a generic way on the interface level, rather than declaring and working with the particular resource implementation.

Types of functionality that are used most frequently include:

For more information on resource functionalities, see the topic Working with resources and functionalities in the Developer Help.

See Also

© 2010 All Rights Reserved.