IAntiforgeryAdditionalDataProvider.ValidateAdditionalData 方法

定义

验证嵌入传入的防伪造令牌中的其他数据。

public:
 bool ValidateAdditionalData(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ additionalData);
public bool ValidateAdditionalData (Microsoft.AspNetCore.Http.HttpContext context, string additionalData);
abstract member ValidateAdditionalData : Microsoft.AspNetCore.Http.HttpContext * string -> bool
Public Function ValidateAdditionalData (context As HttpContext, additionalData As String) As Boolean

参数

context
HttpContext

有关当前请求的信息。

additionalData
String

嵌入令牌中的补充数据。

返回

如果数据有效,则为 True;如果数据无效,则为 false。

适用于