Class MetadataDateTime
Summary description for MetadataDateTime.
Inherited Members
Namespace: ImageVault.Common.Data
Assembly: ImageVault.Common.dll
Syntax
public class MetadataDateTime : Metadata
Constructors
MetadataDateTime()
Initializes a new instance of the MetadataDateTime class.
Declaration
public MetadataDateTime()
MetadataDateTime(MetadataDateTime)
Initializes a new instance of the MetadataDateTime class.
Declaration
public MetadataDateTime(MetadataDateTime metadataDateTime)
Parameters
Type | Name | Description |
---|---|---|
MetadataDateTime | metadataDateTime |
MetadataDateTime(MetadataDefinition, Nullable<Int32>, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance of the MetadataDateTime class.
Declaration
public MetadataDateTime(MetadataDefinition definition, Nullable<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
DateTimeValue
Get/Sets the DateTimeValue of the MetadataBoolean
Declaration
public Nullable<DateTime> DateTimeValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
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 is not a valid DateTime. |