ChoiceAttribute 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.
Choice attribute
C#
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class ChoiceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type ChoiceAttribute = class
inherit Attribute
Public NotInheritable Class ChoiceAttribute
Inherits Attribute
- Inheritance
-
ChoiceAttribute
- Attributes
Choice |
Create a ChoiceAttribute with |
Choice |
Create a ChoiceAttribute with |
Candidates |
Get the candidates of this option. |
Default |
Get the default value of this option. |
Product | Versions |
---|---|
ML.NET | 2.0.0, 3.0.0, Preview, 4.0.0 |