IPropertyRuleExecutionOptions is defined in the Telligent.Evolution.Extensibility.Configuration.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface IPropertyRuleExecutionOptions
{
string DateFormatString { get; }
string DateTimeFormatString { get; }
Property Property { get; }
PropertyRule Rule { get; }
string TimeFormatString { get; }
string ValidUrlPattern { get; }
string GetDataType(string id);
Object GetValue(string id);
string ResolveResource(string resourceName, string defaultText);
void SetValue(string id, Object value);
}
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| DateFormatString | string | The .net format string used to format a DateTime object into a date string. | ||
| DateTimeFormatString | string | The .net format string used to format a DateTime object into a date-and-time string. | ||
| Property | Property | The property on which the rule is executing. | ||
| Rule | PropertyRule | The rule to execute. | ||
| TimeFormatString | string | The .net format string used to format a DateTime object into a time string. | ||
| ValidUrlPattern | string | The regular expression pattern that can be used to validate a URL. |
Methods
string GetDataType(string id);
Retrieves the data type of the property with the given id.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | string | Id | Required |
Return Type
string
Object GetValue(string id);
Retrieves the current value of the property with the given id.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | string | Id | Required |
Return Type
Object
string ResolveResource(string resourceName, string defaultText);
Resolves a language resource name to a string or defaults to the provided text if the resource is not available.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| resourceName | string | Resource Name | Required | ||
| defaultText | string | Default Text | Required |
Return Type
string
void SetValue(string id, Object value);
Sets the value of the property with the given id.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | string | Id | Required | ||
| value | Object | Value | Required |