Class XmpBoolean
Represents XMP Boolean basic type.
public sealed class XmpBoolean : XmpTypeBase, IXmpType
- Inheritance
-
XmpBoolean
- Implements
- Inherited Members
Constructors
XmpBoolean()
Initializes a new instance of the XmpBoolean class with default value.
public XmpBoolean()
XmpBoolean(bool)
Initializes a new instance of the XmpBoolean class based on boolean value.
public XmpBoolean(bool value)
Parameters
value
boolThe Boolean value. Allowed values are True or False.
XmpBoolean(string)
Initializes a new instance of the XmpBoolean class.
public XmpBoolean(string value)
Parameters
value
stringThe value.
Exceptions
- ArgumentNullException
value
- ArgumentException
Invalid string value;value
Properties
Value
Gets or sets a value indicating whether this XmpBoolean is value.
public bool Value { get; set; }
Property Value
- bool
true
if value; otherwise,false
.
Methods
GetXmpRepresentation()
Returns string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
- string
Returns string containing xmp representation.