Class CreationRuleMetadata
- Namespace
 - Dynamicweb.Content.Items.Metadata
 
- Assembly
 - Dynamicweb.dll
 
Represents a creation rule metadata.
  
  public class CreationRuleMetadata : IComparable<CreationRuleMetadata>
  - Inheritance
 - 
      
      CreationRuleMetadata
 
- Implements
 
- Inherited Members
 
Constructors
CreationRuleMetadata()
Initializes a new instance of an object.
  
  public CreationRuleMetadata()
  CreationRuleMetadata(CreationRuleMetadata)
Initializes a new instance of an object.
  
  public CreationRuleMetadata(CreationRuleMetadata copyFrom)
  Parameters
copyFromCreationRuleMetadata- Object to copy state from.
 
Exceptions
- ArgumentNullException
 copyFromis null.
Properties
Name
Gets or sets the name of the rule.
  
  public string Name { get; set; }
  Property Value
SourceType
Gets or sets the activation source type.
  
  public ActivationSourceType SourceType { get; set; }
  Property Value
TypeName
Gets or sets tye assembly-qualified name of the rule type.
  
  public string TypeName { get; set; }
  Property Value
Value
Gets or sets the rule value.
  
  public string Value { get; set; }
  Property Value
Methods
CompareTo(CreationRuleMetadata)
Compares the current object with the given one and returns the comparison result.
  
  public int CompareTo(CreationRuleMetadata other)
  Parameters
otherCreationRuleMetadata- Object to compare with.
 
Returns
- int
 - Comparison result.
 
CopyTo(CreationRuleMetadata)
Copies the state of the current object into the given one.
  
  public void CopyTo(CreationRuleMetadata target)
  Parameters
targetCreationRuleMetadata- Object to copy state into.
 
Exceptions
- ArgumentNullException
 targetis null.
DeserializeFrom(StringBuilder)
Deserializes the state of the current object from a given source.
  
  public virtual void DeserializeFrom(StringBuilder metadata)
  Parameters
metadataStringBuilder- Xml string.
 
DeserializeFrom(XmlReader)
Deserializes the state of the current object from a given source.
  
  public virtual void DeserializeFrom(XmlReader reader)
  Parameters
readerXmlReader- Xml reader.
 
GetSelected()
public HashSet<string> GetSelected()
  Returns
SerializeTo(StringBuilder)
Serializes the state of the current object into the given source.
  
  public virtual void SerializeTo(StringBuilder metadata)
  Parameters
metadataStringBuilder- Xml string.
 
SerializeTo(XmlWriter)
Serializes the state of the current object into the given source.
  
  public virtual void SerializeTo(XmlWriter writer)
  Parameters
writerXmlWriter- Xml writer.