IExternalSettingsProvider.GetEnumChoicesAsync Method
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.
Gets the choices to show in a dynamic enum setting.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.UnifiedSettings.EnumChoice>>> GetEnumChoicesAsync (string enumSettingMoniker, System.Threading.CancellationToken cancellationToken);
abstract member GetEnumChoicesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.UnifiedSettings.EnumChoice>>>
Public Function GetEnumChoicesAsync (enumSettingMoniker As String, cancellationToken As CancellationToken) As Task(Of ExternalSettingOperationResult(Of IReadOnlyList(Of EnumChoice)))
Parameters
- enumSettingMoniker
- String
The moniker of the setting, from registration
- cancellationToken
- CancellationToken
Returns
The choices for the enum setting