Share via


ExternalSettingOperationResult<T>.InvalidValue(String) Constructor

Definition

public InvalidValue(string errorMessage);
new Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<'T>.InvalidValue : string -> Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<'T>.InvalidValue
Public Sub New (errorMessage As String)

Parameters

errorMessage
String

A localized error message to display. May include "https:", "file:", and "config:" links. (The latter, which link to other settings or categories, may only reference elements within the same external region.) The message should follow the pattern "'Value' is not a valid value for 'property'. [Details]". Examples: 'Foobar' is not a valid value for 'dependencyVersion'. Valid values are 'Lowest', 'HighestPatch', 'HighestMinor', and 'Highest'. 'Foobar' is not a valid value for 'version'. The value must follow the semver spec. 'Foobar' is not a valid value for 'color'. The value must be a hex color code. 'Foo bar' is not a valid value for 'lastName'. The value cannot contain spaces.

Applies to