Class FieldOptionMetadataSource
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
Represents a source of field options.
[DataContract]
public abstract class FieldOptionMetadataSource : IComparable<FieldOptionMetadataSource>
- Inheritance
-
FieldOptionMetadataSource
- Implements
- Derived
- Inherited Members
Properties
SourceType
Type of source.
[DataMember]
public abstract FieldOptionSourceType SourceType { get; }
Property Value
Values
Collection of field options.
public virtual FieldOptionMetadataCollection Values { get; set; }
Property Value
Methods
ClearCache()
public virtual void ClearCache()
CompareTo(FieldOptionMetadataSource)
Compares the current object with the given one and returns the comparison result.
public virtual 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 abstract void CopyTo(FieldOptionMetadataSource target)
Parameters
target
FieldOptionMetadataSourceObject to copy state into.
Exceptions
- ArgumentNullException
target
is null.
CreateDecodedOption(string, object)
Creates field option with url decoded fields.
public static FieldOptionMetadata CreateDecodedOption(string name, object value)
Parameters
Returns
- FieldOptionMetadata
FieldOptionMetadata.
CreateDecodedOption(string, object, string)
Creates field option with url decoded fields.
public static FieldOptionMetadata CreateDecodedOption(string name, object value, string icon)
Parameters
name
stringValue for name field.
value
objectValue for value field.
icon
stringValue for icon field.
Returns
- FieldOptionMetadata
FieldOptionMetadata.
CreateEncodedOption(string, object)
Creates field option with url encoded fields.
public static FieldOptionMetadata CreateEncodedOption(string name, object value)
Parameters
Returns
- FieldOptionMetadata
FieldOptionMetadata.
CreateEncodedOption(string, object, string)
Creates field option with url encoded fields.
public static FieldOptionMetadata CreateEncodedOption(string name, object value, string icon)
Parameters
name
stringValue for name field.
value
objectValue for value field.
icon
stringValue for icon field.
Returns
- FieldOptionMetadata
FieldOptionMetadata.
DeserializeFrom(XmlReader)
Deserializes a current instance of a class from specific source.
public abstract void DeserializeFrom(XmlReader reader)
Parameters
reader
XmlReaderXml Reader
SerializeTo(XmlWriter)
Serializes a current instance of class to specific source.
public abstract void SerializeTo(XmlWriter writer)
Parameters
writer
XmlWriterXml Writer
Update()
Updates source collection
public abstract void Update()
ValidateCopying(FieldOptionMetadataSource)
protected void ValidateCopying(FieldOptionMetadataSource target)
Parameters
target
FieldOptionMetadataSource