共用方式為


EnumValue.IsDefault Property

Definition

Tells if this EnumValue is the default value for the associated EnumProperty.

public:
 property bool IsDefault { bool get(); void set(bool value); };
public bool IsDefault { get; set; }
public bool IsDefault { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.IsDefault : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.IsDefault : bool with get, set
Public Property IsDefault As Boolean

Property Value

true if the enum value is the default value; otherwise, false.

Attributes

Remarks

This field is optional and the default value for this field is "false".

Applies to