Table of Contents

Class QueryVariable

Namespace
Dynamicweb.DataManagement
Assembly
Dynamicweb.DataManagement.dll

Variable for query.

[Serializable]
public class QueryVariable
Inheritance
QueryVariable
Inherited Members

Constructors

QueryVariable()

Default constructor

public QueryVariable()

QueryVariable(VariableType, string)

Construct new QueryVariable defining type and name

public QueryVariable(QueryVariable.VariableType type, string name)

Parameters

type QueryVariable.VariableType

QueryVariable type

name string

QueryVariable name

QueryVariable(VariableType, string, string)

Construct new QueryVariable defining type, name and value

public QueryVariable(QueryVariable.VariableType type, string name, string value)

Parameters

type QueryVariable.VariableType

QueryVariable type

name string

QueryVariable name

value string

QueryVariable value

Fields

MatchRegex

public static readonly Regex MatchRegex

Field Value

Regex

Properties

Name

Name

public string Name { get; set; }

Property Value

string

Type

Type of query variable

public QueryVariable.VariableType Type { get; set; }

Property Value

QueryVariable.VariableType

TypeString

Shows type (Request or Session)

public string TypeString { get; }

Property Value

string

Value

Value

public string Value { get; set; }

Property Value

string

Methods

Create(string)

Create variable from string definition.

public static QueryVariable Create(string def)

Parameters

def string

in format @Type("name") or @Type('name')

Returns

QueryVariable

created variable, or null

Create(Match)

Create variable from regex match definition.

public static QueryVariable Create(Match match)

Parameters

match Match

Returns

QueryVariable

created variable, or null

Equals(object)

Compares current QueryVariable with object instance

public override bool Equals(object obj)

Parameters

obj object

Object ot be compared with

Returns

bool

True if objects are equal

GetHashCode()

Return hash code based on Name property value

public override int GetHashCode()

Returns

int

Integer value

To top