Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Include Protected Members
Include Inherited Members
Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
| Name | Description | |
|---|---|---|
![]() |
AntiForgeryToken() | Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. |
![]() |
AntiForgeryToken(String) | Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value. |
![]() |
AntiForgeryToken(String, String, String) | Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value, domain, and path. |
Top
Remarks
The anti-forgery token can be used to help protect your application against cross-site request forgery. To use this feature, call the AntiForgeryToken method from a form and add the ValidateAntiForgeryTokenAttribute attribute to the action method that you want to protect.
.jpeg)