Class FieldOptionSetupMetadata
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
Represents a field options setup metadata.
public class FieldOptionSetupMetadata : IComparable<FieldOptionSetupMetadata>
- Inheritance
-
FieldOptionSetupMetadata
- Implements
- Inherited Members
Constructors
FieldOptionSetupMetadata()
Initializes a new instance of an object.
public FieldOptionSetupMetadata()
FieldOptionSetupMetadata(FieldOptionMetadataSource)
Initializes a new instance of an object with specific option source.
public FieldOptionSetupMetadata(FieldOptionMetadataSource source)
Parameters
sourceFieldOptionMetadataSource
FieldOptionSetupMetadata(FieldOptionSetupMetadata)
Initializes a new instance of an object.
public FieldOptionSetupMetadata(FieldOptionSetupMetadata copyFrom)
Parameters
copyFromFieldOptionSetupMetadata- Object to copy state from.
Exceptions
- ArgumentNullException
copyFromis null.
Properties
Source
Returns current source of field options.
public FieldOptionMetadataSource Source { get; set; }
Property Value
SourceType
Gets or sets the source type.
public FieldOptionSourceType SourceType { get; }
Property Value
Values
Gets or sets the list of options.
public FieldOptionMetadataCollection Values { get; }
Property Value
Methods
CompareTo(FieldOptionSetupMetadata)
Compares the current object with the given one and returns the comparison result.
public int CompareTo(FieldOptionSetupMetadata other)
Parameters
otherFieldOptionSetupMetadata- Object to compare with.
Returns
- int
- Comparison result.
CopyTo(FieldOptionSetupMetadata)
Copies the state of the current object into the given one.
public void CopyTo(FieldOptionSetupMetadata target)
Parameters
targetFieldOptionSetupMetadata- Object to copy state into.
Exceptions
- ArgumentNullException
targetis null.
DeserializeFrom(XmlReader)
Deserializes options from xml.
public void DeserializeFrom(XmlReader reader)
Parameters
readerXmlReader
SerializeTo(XmlWriter)
Serializes options to xml.
public void SerializeTo(XmlWriter writer)
Parameters
writerXmlWriter