Aracılığıyla paylaş


IAntiforgery.GetTokens(HttpContext) Yöntem

Tanım

Bu istek için bir AntiforgeryTokenSet oluşturur.

public:
 Microsoft::AspNetCore::Antiforgery::AntiforgeryTokenSet ^ GetTokens(Microsoft::AspNetCore::Http::HttpContext ^ httpContext);
public Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens (Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member GetTokens : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet
Public Function GetTokens (httpContext As HttpContext) As AntiforgeryTokenSet

Parametreler

httpContext
HttpContext

HttpContext Geçerli istekle ilişkili.

Döndürülenler

AntiforgeryTokenSet Bu istek için.

Açıklamalar

aksine GetAndStoreTokens(HttpContext), bu yöntemin hiçbir yan etkisi yoktur. Çağıran, yanıt tanımlama bilgisini ayarlamak ve döndürülen form belirtecini uygun şekilde eklemekle sorumludur.

Şunlara uygulanır