EditableDomainObjectIssueWarning Method (ExpressionFuncString, Object) |
Issues a warning with the specified message. The message can contain standard string placeholders.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic void IssueWarning(
Expression<Func<string>> getMessage,
params Object[] args
)
Public Sub IssueWarning (
getMessage As Expression(Of Func(Of String)),
ParamArray args As Object()
)
public:
void IssueWarning(
Expression<Func<String^>^>^ getMessage,
... array<Object^>^ args
)
member IssueWarning :
getMessage : Expression<Func<string>> *
args : Object[] -> unit
Parameters
- getMessage
- Type: System.Linq.ExpressionsExpressionFuncString
Simple expression, which should return the resource string,
containing the message with placeholders. It should be translated to the current thread language. - args
- Type: SystemObject
The arguments to replace in the placeholders.
Remarks
Warnings are raised as events to the hosting system, which hosts the domain system.
It is up to the hosting system to decide if and how to show the warnings to the end user.
Warnings are usually used by the handlers for the data attribute change events.
The message is passed as expression, so that (in future versions) it can be analyzed and the
actual resource string extracted.
See Also