Gemstone Common Library
Show/Hide TOC

# ToggleVisibilityAttribute Constructor

Specifies that a property should render a toggle switch in the UI that allows the user to disable and/or reset the properties value.

## Definition

Namespace: Gemstone.ComponentModel.DataAnnotations
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.177 -- Release Build+17e3a8c30c12a6a5a57ad4af156d7b83be281c33
C#
View Source Request Example

    public ToggleVisibilityAttribute(
    	string label,
    	bool triggerValue = false
    )

VB
View Source Request Example

    Public Sub New (
    	label As String,
    	Optional triggerValue As Boolean = false
    )

C++
View Source Request Example

    public:
    ToggleVisibilityAttribute(
    	String^ label,
    	bool triggerValue = false
    )

JavaScript
View Source Request Example

    Gemstone.ComponentModel.DataAnnotations.ToggleVisibilityAttribute = function(label, triggerValue);

#### Parameters

label String

  [Missing <param name="label"/> documentation for "M:Gemstone.ComponentModel.DataAnnotations.ToggleVisibilityAttribute.#ctor(System.String,System.Boolean)"]

triggerValue Boolean (Optional)

  [Missing <param name="triggerValue"/> documentation for "M:Gemstone.ComponentModel.DataAnnotations.ToggleVisibilityAttribute.#ctor(System.String,System.Boolean)"]

## See Also

#### Reference

ToggleVisibilityAttribute Class
Gemstone.ComponentModel.DataAnnotations Namespace