![]() ![]() |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer | |
SupportsFunctionality Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapResourceBase Class : SupportsFunctionality Method |
- functionalityType
- The Type of functionality to check, e.g., IQueryFunctionality. Use an interface that derives from IGISFunctionality.
Visual Basic (Declaration) | |
---|---|
Public Overrides Function SupportsFunctionality( _ ByVal functionalityType As Type _ ) As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As MapResourceBase 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.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:
- Query functionality (IQueryFunctionality)
- Geocode functionality (IGeocodeFunctionality)
- Geoprocessing functionality (IGeoprocessingFunctionality)
For more information on resource functionalities, see the topic Working with resources and functionalities in the Developer Help.
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