LocalCategories Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides names of search categories that you can use to limit search results when calling the FindLocalLocationsAsync method.
Note
This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.
public ref class LocalCategories abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Maps.LocalSearchContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LocalCategories final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Maps.LocalSearchContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class LocalCategories
Public Class LocalCategories
- Inheritance
- Attributes
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows Mobile Extension SDK (introduced in 10.0.10240.0) |
API contract |
Windows.Services.Maps.LocalSearchContract (introduced in v1.0)
|
All |
Gets a value that represents all search categories. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Bank |
Gets the name of the search category for banks and credit unions. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Eat |
Gets the name of the search category for places to eat and drink. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Hospitals |
Gets the name of the search category for hospitals. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Hotels |
Gets the name of the search category for hotels and motels. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Parking |
Gets the name of the search category for parking locations. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
See |
Gets the name of the search category for places to see and things to do. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Shop |
Gets the name of the search category for places to shop. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |