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.VariableTypeQueryVariable type
name
stringQueryVariable 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.VariableTypeQueryVariable type
name
stringQueryVariable name
value
stringQueryVariable value
Fields
MatchRegex
public static readonly Regex MatchRegex
Field Value
Properties
Name
Name
public string Name { get; set; }
Property Value
Type
Type of query variable
public QueryVariable.VariableType Type { get; set; }
Property Value
TypeString
Shows type (Request or Session)
public string TypeString { get; }
Property Value
Value
Value
public string Value { get; set; }
Property Value
Methods
Create(string)
Create variable from string definition.
public static QueryVariable Create(string def)
Parameters
def
stringin 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
objectObject 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