IAntiforgeryAdditionalDataProvider.GetAdditionalData(HttpContext) 方法

定义

提供要为此请求期间生成的防伪造令牌存储的其他数据。

public:
 System::String ^ GetAdditionalData(Microsoft::AspNetCore::Http::HttpContext ^ context);
public string GetAdditionalData (Microsoft.AspNetCore.Http.HttpContext context);
abstract member GetAdditionalData : Microsoft.AspNetCore.Http.HttpContext -> string
Public Function GetAdditionalData (context As HttpContext) As String

参数

context
HttpContext

有关当前请求的信息。

返回

要嵌入到防伪造令牌中的补充数据。

适用于