|
AntiForgeryGetHtml Method
|
Generates an anti-forgery token for this request. This token can
be validated by calling the Validate() method.
Namespace: GSF.Web.SecurityAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic static string GetHtml(
HttpResponseMessage response
)
Public Shared Function GetHtml (
response As HttpResponseMessage
) As String
public:
static String^ GetHtml(
HttpResponseMessage^ response
)
static member GetHtml :
response : HttpResponseMessage -> string
GSF.Web.Security.AntiForgery.GetHtml = function(response);
View SourceParameters
- response HttpResponseMessage
- Response message.
Return Value
StringAn HTML string corresponding to an <input type="hidden">
element. This element should be put inside a <form>.
Remarks
This method has a side effect: it may set a response cookie.
See Also