Table of Contents

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

copyFrom CreationRuleMetadata

Object to copy state from.

Exceptions

ArgumentNullException

copyFrom is null.

Properties

Name

Gets or sets the name of the rule.

public string Name { get; set; }

Property Value

string

SourceType

Gets or sets the activation source type.

public ActivationSourceType SourceType { get; set; }

Property Value

ActivationSourceType

TypeName

Gets or sets tye assembly-qualified name of the rule type.

public string TypeName { get; set; }

Property Value

string

Value

Gets or sets the rule value.

public string Value { get; set; }

Property Value

string

Methods

CompareTo(CreationRuleMetadata)

Compares the current object with the given one and returns the comparison result.

public int CompareTo(CreationRuleMetadata other)

Parameters

other CreationRuleMetadata

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

target CreationRuleMetadata

Object to copy state into.

Exceptions

ArgumentNullException

target is null.

DeserializeFrom(StringBuilder)

Deserializes the state of the current object from a given source.

public virtual void DeserializeFrom(StringBuilder metadata)

Parameters

metadata StringBuilder

Xml string.

DeserializeFrom(XmlReader)

Deserializes the state of the current object from a given source.

public virtual void DeserializeFrom(XmlReader reader)

Parameters

reader XmlReader

Xml reader.

GetSelected()

public HashSet<string> GetSelected()

Returns

HashSet<string>

SerializeTo(StringBuilder)

Serializes the state of the current object into the given source.

public virtual void SerializeTo(StringBuilder metadata)

Parameters

metadata StringBuilder

Xml string.

SerializeTo(XmlWriter)

Serializes the state of the current object into the given source.

public virtual void SerializeTo(XmlWriter writer)

Parameters

writer XmlWriter

Xml writer.

To top