Show / Hide Table of Contents

    Class StringReplaceToken

    Represents the old and new values to be used for string replacements.

    Inheritance
    Object
    StringReplaceToken
    Implements
    IValidator
    IEquatable<StringReplaceToken>
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Processing
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class StringReplaceToken : IValidator, IEquatable<StringReplaceToken>

    Constructors

    StringReplaceToken()

    Declaration
    public StringReplaceToken()

    Fields

    ElementName

    Name of the root element when object is serialized to XML.

    Declaration
    public const string ElementName = "STRING"
    Field Value
    Type Description
    String

    Properties

    ErrorMessage

    Gets the summary of validation errors populated by the call to Validate() method.

    Declaration
    public string ErrorMessage { get; }
    Property Value
    Type Description
    String

    IgnoreCase

    Gets or sets flag indicating that old value search must be case-insensitive.

    Declaration
    public bool IgnoreCase { get; set; }
    Property Value
    Type Description
    Boolean

    NewValue

    Gets or sets the string value to to replace the old value with. Value may contain a specially formatted context property name which value must be used as the actual replacement value.

    Declaration
    public string NewValue { get; set; }
    Property Value
    Type Description
    String

    OldValue

    Gets or sets the string value to be found and replaced. Value may contain a specially formatted context property name which value must be used as the actual replacement value.

    Declaration
    public string OldValue { get; set; }
    Property Value
    Type Description
    String

    Methods

    Equals(StringReplaceToken)

    Determines whether the specified object is equal to the current object.

    Declaration
    public bool Equals(StringReplaceToken other)
    Parameters
    Type Name Description
    StringReplaceToken other

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True, if objects are equal. False, if objects are not equal.

    Equals(Object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True, if objects are equal. False, if objects are not equal.

    Overrides
    Object.Equals(Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the current instance.

    Overrides
    Object.GetHashCode()

    ToString()

    Returns string representation of the object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representing the object's content.

    Overrides
    Object.ToString()

    Validate()

    Evaluates the state of this object.

    Declaration
    public bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Implements

    IValidator
    System.IEquatable<T>
    Back to top Nevatech Sentinet 6.5 Online Documentation