Class MetadataBoolean
Summary description for MetadataBoolean.
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
Assembly: ImageVault.Common.dll
Syntax
public class MetadataBoolean : Metadata
Constructors
MetadataBoolean()
Initializes a new instance of the MetadataBoolean class.
Declaration
public MetadataBoolean()
MetadataBoolean(MetadataBoolean)
Initializes a new instance of the MetadataBoolean class.
Declaration
public MetadataBoolean(MetadataBoolean metadataBoolean)
Parameters
| Type | Name | Description |
|---|---|---|
| MetadataBoolean | metadataBoolean |
MetadataBoolean(MetadataDefinition, Nullable<Int32>, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance of the MetadataBoolean class.
Declaration
public MetadataBoolean(MetadataDefinition definition, int? languageId, bool isMandantory, bool isTitle, bool isAltText, bool isDefinedInVault)
Parameters
| Type | Name | Description |
|---|---|---|
| MetadataDefinition | definition | |
| System.Nullable<System.Int32> | languageId | |
| System.Boolean | isMandantory | |
| System.Boolean | isTitle | |
| System.Boolean | isAltText | |
| System.Boolean | isDefinedInVault |
Properties
BooleanValue
Get/Sets the BooleanValue of the MetadataBoolean
Declaration
public bool BooleanValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
InnerValue
Get/Sets the InnerValue of the Metadata
Declaration
protected override object InnerValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The value for all metadata objects. If IsCoherent is false this only contains the value of the first item |
Overrides
Methods
Parse(String)
Parses the supplied value and assigns it to the metadata
Declaration
public override void Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ComponentModel.DataAnnotations.ValidationException | If the value was is a valid boolean. |