private IReadOnlyDictionary<string, string> _properties = new Dictionary<string, string>();
/// <summary>
- /// Constructor for search preference
+ /// Constructors a new search preference.
/// </summary>
public SearchPreference()
{
}
/// <summary>
- /// Constructor for search preference
+ /// Constructors a new search preference.
/// </summary>
internal SearchPreference(Interop.PreferenceHandle nativeHandle)
{
}
/// <summary>
- /// Preferred language
+ /// Gets or sets preferred language.
/// </summary>
- /// <remarks>
- /// Language should be specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code e.g. "ko-KR"
- /// </remarks>
+ /// <remarks>Language should be specified as an ISO 3166 alpha-2 two letter country-code
+ /// followed by ISO 639-1 for the two-letter language code.<br/>e.g. "ko-KR", "en-US".</remarks>
public string Language
{
get
}
/// <summary>
- /// Maximum result count for a service request
+ /// Gets or sets the maximum result count for each service request.
/// </summary>
/// <remarks>Setting negative value will not have any effect on MaxResults value</remarks>
public int MaxResults
}
/// <summary>
- /// Distance unit
+ /// Gets or sets distance unit.
/// </summary>
public DistanceUnit Unit
{
}
/// <summary>
- /// Preferred country
+ /// Gets or sets preferred country.
/// </summary>
public string CountryCode
{
}
/// <summary>
- /// Search properties as key value pair
+ /// Gets or sets search properties as key value pair.
/// </summary>
public IReadOnlyDictionary<string, string> Properties
{
}
/// <summary>
- /// Selected route optimization
+ /// Gets or sets route optimization.
/// </summary>
public RouteOptimization Optimization
{
}
/// <summary>
- /// Route transport mode
+ /// Gets or sets route transport mode.
/// </summary>
public TransportMode Mode
{
}
/// <summary>
- /// Route feature weight
+ /// Gets or sets route feature weight.
/// </summary>
public RouteFeatureWeight RouteFeatureWeight
{
}
/// <summary>
- /// Route feature
+ /// Gets or sets route feature.
/// </summary>
public RouteFeature RouteFeature
{
}
/// <summary>
- /// Indicate if search for alternative routes is enabled.
+ /// Gets or sets if searching for alternative routes is enabled.
/// </summary>
public bool SearchAlternativeRoutes
{
}
}
+ /// <summary>
+ /// Releases all resources used by this object.
+ /// </summary>
public void Dispose()
{
Dispose(true);