HeaderEncodingSelector<TContext> Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.