CookieExtensionsAddCookie Method (HttpResponse, HttpCookie, String) |
Add a cookie to the response.
Namespace:
NetQuarry.Net
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void AddCookie(
this HttpResponse response,
HttpCookie cookie,
string cookieDomain = null
)
<ExtensionAttribute>
Public Shared Sub AddCookie (
response As HttpResponse,
cookie As HttpCookie,
Optional cookieDomain As String = Nothing
)
Parameters
- response
- Type: System.WebHttpResponse
The response. - cookie
- Type: System.WebHttpCookie
The cookie to add. - cookieDomain (Optional)
- Type: SystemString
The optional cookie domain.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also