Upraviť

Zdieľať cez


HeaderEncodingSelector<TContext> Delegate

Definition

Represents a method that specifies the encoding to use when interpreting header values.

generic <typename TContext>
public delegate System::Text::Encoding ^ HeaderEncodingSelector(System::String ^ headerName, TContext context);
public delegate System.Text.Encoding? HeaderEncodingSelector<TContext>(string headerName, TContext context);
type HeaderEncodingSelector<'Context> = delegate of string * 'Context -> Encoding
Public Delegate Function HeaderEncodingSelector(Of TContext)(headerName As String, context As TContext) As Encoding 

Type Parameters

TContext

The type of the headers that are being encoded/decoded.

Parameters

headerName
String

The name of the header to specify for the encoding.

context
TContext

The type we are encoding/decoding the headers for.

Return Value

The encoding to use, or null to use the default behavior.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to