Class AttributeValue
Represents an attribute value
Inheritance
System.Object
AttributeValue
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Data.Display
Assembly: ImageVault.Common.dll
Syntax
public class AttributeValue : ICloneable
Constructors
AttributeValue()
Initializes a new instance of the AttributeValue class.
Declaration
public AttributeValue()
AttributeValue(AttributeBindName, String, Boolean, Boolean)
Initializes a new instance of the AttributeValue class.
Declaration
public AttributeValue(AttributeBindName bindValue, string defaultValue = null, bool required = false, bool displayIfEmpty = false)
Parameters
Type | Name | Description |
---|---|---|
AttributeBindName | bindValue | the name the value should bind to |
System.String | defaultValue | the value of the attribute |
System.Boolean | required | if the attribute is required |
System.Boolean | displayIfEmpty | if the attribute should be rendered if empty |
AttributeValue(AttributeValue)
Initializes a new instance of the AttributeValue class.
Declaration
public AttributeValue(AttributeValue attributeValue)
Parameters
Type | Name | Description |
---|---|---|
AttributeValue | attributeValue |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Fields
BindValue
Get/Sets the name the value should bind to
Declaration
public AttributeBindName BindValue
Field Value
Type | Description |
---|---|
AttributeBindName |
DefaultValue
Get/Sets the value of the attribute
Declaration
public string DefaultValue
Field Value
Type | Description |
---|---|
System.String |
DisplayIfEmpty
Should the attribute be rendered if empty
Declaration
public bool DisplayIfEmpty
Field Value
Type | Description |
---|---|
System.Boolean |
Required
Get/Sets if the attribute is required
Declaration
public bool Required
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
BooleanAttribute
True if the attribute should be treated as a boolean attribute
Declaration
public bool BooleanAttribute { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Implements
System.ICloneable