ExternalSettingOperationResult<T>.InvalidValue(String) Constructor
Definition
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.
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.