Share via


EnumProperty Class

Represents the schema of an enumeration property.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Framework.XamlTypes.BaseProperty
    Microsoft.Build.Framework.XamlTypes.EnumProperty

Namespace:  Microsoft.Build.Framework.XamlTypes
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
<ContentPropertyAttribute("AdmissibleValues")> _
Public NotInheritable Class EnumProperty _
    Inherits BaseProperty
[ContentPropertyAttribute("AdmissibleValues")]
public sealed class EnumProperty : BaseProperty
[ContentPropertyAttribute(L"AdmissibleValues")]
public ref class EnumProperty sealed : public BaseProperty
[<Sealed>]
[<ContentPropertyAttribute("AdmissibleValues")>]
type EnumProperty =  
    class 
        inherit BaseProperty 
    end
public final class EnumProperty extends BaseProperty

The EnumProperty type exposes the following members.

Constructors

  Name Description
Public method EnumProperty The default enum property constructor.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

Properties

  Name Description
Public property AdmissibleValues Gets or sets the list of possible values for this property. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Arguments Gets or sets a list of arguments for this property.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Category Gets or sets the name of the category to which this property belongs.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property ContainingRule Gets or sets the Rule that contains this BaseProperty.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property DataSource Gets or sets the data source where the current value of this property is stored.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Default Gets or sets the default value for this property.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Description Gets or sets a description of this BaseProperty for use by a prospective UI client.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property DisplayName Gets or sets a name that can be used by a prospective UI client to display this BaseProperty.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property F1Keyword Gets or sets the keyword that is used to open the help page for this property.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property HelpContext Gets or sets the Help context to use when the user presses F1.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property HelpFile Gets or sets the Help file to use when the user presses F1.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property HelpUrl Gets or sets the URL of the Help page for this property. The page is opened when the user presses F1.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property IncludeInCommandLine Gets or sets a hint to the command-line constructor whether to include this property in the command line.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property IsRequired Gets or sets a flag that indicates whether this property is required to have a value set.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Metadata Gets or sets additional attributes of this BaseProperty.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property MultipleValuesAllowed Gets or sets a switch that specifies whether this property allows multiple values to be supplied/selected simultaneously.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Name Gets or sets the name of this BaseProperty.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property ReadOnly Gets or sets a flag that indicates whether this property is read-only.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Separator Gets or sets the token used to separate a switch from its value.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Subcategory Gets or sets the subcategory this property belongs to.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Switch Gets or sets the switch representation of this property when the property represents a tool parameter.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property SwitchPrefix Gets or sets the prefix for the switch representation of this property when this property represents a tool parameter.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property ValueEditors Gets or sets the list of value editors for this property.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public property Visible Gets or sets a hint to the UI client that tells it whether to display this property.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)

Top

Methods

  Name Description
Public method BeginInit See BeginInit.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from BaseProperty.)
Public method EndInit See EndInit.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Overrides BaseProperty.EndInit().)
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

This class inherits the Default property from the BaseProperty class, which has no meaning for this property. Use the IsDefault property on the EnumValue instead to mark the default value for this property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Framework.XamlTypes Namespace