Class RegexMaskingExpression
Implements the masking expression that replaces text values matched by the specified Regular Expression.
Implements
System.IEquatable<MaskingExpressionBase>
System.Runtime.Serialization.IExtensibleDataObject
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RegexMaskingExpression : MaskingExpressionBase, IValidator, IEquatable<MaskingExpressionBase>, IExtensibleDataObject
Constructors
RegexMaskingExpression()
Declaration
public RegexMaskingExpression()
Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "REGEX-REPLACE"
Field Value
Type | Description |
---|---|
System.String |
Methods
Equals(MaskingExpressionBase)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(MaskingExpressionBase other)
Parameters
Type | Name | Description |
---|---|---|
MaskingExpressionBase | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
ReplaceValue(String)
Replaces the provided value according to the expressions configuration.
Declaration
protected override string ReplaceValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | String value to be masked. |
Returns
Type | Description |
---|---|
System.String | String with matched values been replaced. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |
Overrides
Implements
System.IEquatable<T>
System.Runtime.Serialization.IExtensibleDataObject