ParameterizedFormatterFactory<T> Delegate

Creates a Formatter<T> based on a parameter.

Namespace: Microsoft.Practices.EnterpriseLibrary.Logging.Formatters
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public delegate Formatter<T> ParameterizedFormatterFactory<T>(
    string parameter
)
'Declaration
Public Delegate Function ParameterizedFormatterFactory(Of T) ( 
    parameter As String
) As Formatter(Of T)
generic<typename T>
public delegate Formatter<T>^ ParameterizedFormatterFactory(
    String^ parameter
)

Parameters

  • parameter
    Type: System.String
    The parameter to use when creating a formatter, extracted from the token on a template.

Type Parameters

  • T
    The type to format.

Return Value

Type: Formatter<T>
The Formatter<T> based on the parameter.

Remarks

This delegate is used by CreateParameterizedTokenHandler(ParameterizedFormatterFactory<T>).

See Also

Microsoft.Practices.EnterpriseLibrary.Logging.Formatters Namespace