PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsContract­Localized­Text­ProviderGet­Message
Open sandboxFocus

ContractLocalizedTextProvider.GetMessage Method

GetMessage(String)

Gets a message declared by the LocalizedTextProvider or the rest of responsibility chain if applicable.

Declaration
public override string GetMessage(string messageId)
Parameters
Type Name Description
System.String messageId

Identifier of the message.

Returns
Type Description
System.String

Message represented by messageId. Returning null is not allowed.

Overrides
LocalizedTextProvider.GetMessage(String)
Remarks

An implementation must call the base implementation if it does not provide the requested message. The base implementation is responsible to invoke the next provider in the chain of responsibility.