CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Rules.RuleUri Class Reference

Parses a rule:// URI to provide easy access to the parts of the URI. More...

Public Member Functions

 RuleUri (string ruleString)
 Creates an instance of the object by parsing the provided rule:// URI. More...
 
 RuleUri (Uri uri)
 Creates an instance of the type. More...
 
 RuleUri (IBusinessRuleBase rule, Csla.Core.IPropertyInfo property)
 Creates an instance of the type. More...
 
 RuleUri (string typeName, string propertyName)
 Creates an instance of the type. More...
 
override string ToString ()
 Gets a string representation of the rule URI. More...
 
void AddQueryParameter (string key, string value)
 Adds a query parameter to the URI. More...
 

Static Public Member Functions

static RuleUri Parse (string ruleString)
 Parses a rule:// URI. More...
 

Properties

string RuleTypeName [get]
 Gets the name of the type containing the rule method. More...
 
string PropertyName [get]
 Gets the name of the property with which the rule is associated. More...
 
Dictionary< string, string >? Arguments [get]
 Gets a Dictionary containing the name/value arguments provided to the rule method. More...
 

Detailed Description

Parses a rule:// URI to provide easy access to the parts of the URI.

Definition at line 18 of file RuleUri.cs.

Constructor & Destructor Documentation

◆ RuleUri() [1/4]

Csla.Rules.RuleUri.RuleUri ( string  ruleString)

Creates an instance of the object by parsing the provided rule:// URI.

Parameters
ruleStringThe rule:// URI.

Definition at line 27 of file RuleUri.cs.

◆ RuleUri() [2/4]

Csla.Rules.RuleUri.RuleUri ( Uri  uri)

Creates an instance of the type.

Parameters
uriThe rule:// URI.

Definition at line 35 of file RuleUri.cs.

◆ RuleUri() [3/4]

Csla.Rules.RuleUri.RuleUri ( IBusinessRuleBase  rule,
Csla.Core.IPropertyInfo  property 
)

Creates an instance of the type.

Parameters
ruleRule object.
propertyProperty to which rule applies.

Definition at line 47 of file RuleUri.cs.

◆ RuleUri() [4/4]

Csla.Rules.RuleUri.RuleUri ( string  typeName,
string  propertyName 
)

Creates an instance of the type.

Parameters
typeNameName of the rule type.
propertyNameName of the business object property or the string literal "null".

Definition at line 57 of file RuleUri.cs.

Member Function Documentation

◆ AddQueryParameter()

void Csla.Rules.RuleUri.AddQueryParameter ( string  key,
string  value 
)

Adds a query parameter to the URI.

Parameters
keyKey for the parameter.
valueValue of the parameter.

Definition at line 113 of file RuleUri.cs.

◆ Parse()

static RuleUri Csla.Rules.RuleUri.Parse ( string  ruleString)
static

Parses a rule:// URI.

Parameters
ruleStringText representation of a rule:// URI.
Returns
A populated RuleDescription object.

Definition at line 94 of file RuleUri.cs.

◆ ToString()

override string Csla.Rules.RuleUri.ToString ( )

Gets a string representation of the rule URI.

Returns

Definition at line 103 of file RuleUri.cs.

Property Documentation

◆ Arguments

Dictionary<string, string>? Csla.Rules.RuleUri.Arguments
get

Gets a Dictionary containing the name/value arguments provided to the rule method.

Definition at line 153 of file RuleUri.cs.

◆ PropertyName

string Csla.Rules.RuleUri.PropertyName
get

Gets the name of the property with which the rule is associated.

Definition at line 143 of file RuleUri.cs.

◆ RuleTypeName

string Csla.Rules.RuleUri.RuleTypeName
get

Gets the name of the type containing the rule method.

Definition at line 127 of file RuleUri.cs.