ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / InputNumber Class / IsRequired Property






In This Topic
    IsRequired Property (InputNumber)
    In This Topic
    Gets or sets a value indicating whether the control value must be a number or whether it can be set to null (by deleting the content of the control).
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property IsRequired As System.Boolean
    'Usage
     
    
    Dim instance As InputNumber
    Dim value As System.Boolean
     
    instance.IsRequired = value
     
    value = instance.IsRequired
    [System.ComponentModel.DefaultValue(true)]
    public System.bool IsRequired {get; set;}
    public read-write property IsRequired: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set IsRequired : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_IsRequired();
    public: __property void set_IsRequired( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool IsRequired {
       System.bool get();
       void set (    System.bool value);
    }
    See Also