EvaluateExtendedCloseExpression<T>(string, LoggingTransaction, T, ExtendedTransactionExpressionOptions)
Evaluates an expression defined as an extended property (typically an XML attribute) where
the argument of the expression is a CloseTransactionExpressionModel.
Declaration
T EvaluateExtendedCloseExpression<T>(string propertyName, LoggingTransaction transaction, T defaultValue = default, ExtendedTransactionExpressionOptions options = ExtendedTransactionExpressionOptions.None)Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The name of the property (or XML attribute) that defines the expression. The name is case-sensitive. |
| LoggingTransaction | transaction | The input LoggingTransaction. |
| T | defaultValue | The value returned if the expression is not defined or has an error. |
| ExtendedTransactionExpressionOptions | options | Determines whether exceptions should be thrown or swallowed or whether the expression is allowed to use sampling functions. |
Returns
| Type | Description |
|---|---|
| T | The result of the expression, or |
Type Parameters
| Name | Description |
|---|---|
| T | The return type of the expression. |