HeaderEncodingSelector<TContext> 代理人

定義

代表會指定使用哪一種編碼來解譯標題值的方法。

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 

類型參數

TContext

要編碼/解碼之標頭的類型。

參數

headerName
String

要針對編碼指定的標題名稱。

context
TContext

我們正在編碼/解碼的標題類型。

傳回值

要使用的編碼方式,或用 null 來使用預設行為。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於