Class FieldOptionMetadataFolderSource
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
The option source to list the content of a folder as options
[DataContract]
public class FieldOptionMetadataFolderSource : FieldOptionMetadataSource, IComparable<FieldOptionMetadataSource>
- Inheritance
-
FieldOptionMetadataFolderSource
- Implements
- Inherited Members
Constructors
FieldOptionMetadataFolderSource()
Creates a new instance of a class.
public FieldOptionMetadataFolderSource()
FieldOptionMetadataFolderSource(string)
Creates a new instance of a class.
public FieldOptionMetadataFolderSource(string folder)
Parameters
folder
stringThe source folder.
Properties
Folder
The soure folder
[DataMember]
public string Folder { get; set; }
Property Value
SourceType
Type of source.
[DataMember]
public override FieldOptionSourceType SourceType { get; }
Property Value
Values
Collection of field options.
public override FieldOptionMetadataCollection Values { get; set; }
Property Value
Methods
ClearCache()
public override void ClearCache()
CompareTo(FieldOptionMetadataSource)
Compares the current object with the given one and returns the comparison result.
public override int CompareTo(FieldOptionMetadataSource other)
Parameters
other
FieldOptionMetadataSourceObject to compare with.
Returns
- int
Comparison result.
CopyTo(FieldOptionMetadataSource)
Copies the state of the current object into the given one.
public override void CopyTo(FieldOptionMetadataSource target)
Parameters
target
FieldOptionMetadataSourceObject to copy state into.
Exceptions
- ArgumentNullException
target
is null.
DeserializeFrom(XmlReader)
Deserializes a current instance of a class from specific source.
public override void DeserializeFrom(XmlReader reader)
Parameters
reader
XmlReaderXml Reader
SerializeTo(XmlWriter)
Serializes a current instance of class to specific source.
public override void SerializeTo(XmlWriter writer)
Parameters
writer
XmlWriterXml Writer
Update()
Updates source collection
public override void Update()