Class MaskingExpressionBase
Represents the base class for all masking expressions.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public abstract class MaskingExpressionBase : IValidator, IEquatable<MaskingExpressionBase>, IExtensibleDataObject
  Constructors
MaskingExpressionBase()
Declaration
protected MaskingExpressionBase()
  Properties
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
Expression
Gets or sets the language-specific expression that matches values to be replaced.
Declaration
public string Expression { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
ExtensionData
Gets or sets ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ExtensionDataObject | 
ReplacementValue
Gets or sets the string value to replace the matched value.
Declaration
public string ReplacementValue { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
Methods
Equals(MaskingExpressionBase)
Determines whether the specified object is equal to the current object.
Declaration
public virtual bool Equals(MaskingExpressionBase other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MaskingExpressionBase | 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
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| Int32 | Hash code of the current instance.  | 
      
Overrides
ReplaceValue(String)
Replaces the provided value according to the expressions configuration.
Declaration
protected abstract string ReplaceValue(string value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| String | value | String value to be masked.  | 
      
Returns
| Type | Description | 
|---|---|
| String | String with matched values been replaced.  | 
      
Validate()
Evaluates the state of this object.
Declaration
public virtual bool Validate()
  Returns
| Type | Description | 
|---|---|
| Boolean | True if state is valid; otherwise, false.  |