CookieExtensionsAddEncodedCookie Method |
Namespace:
NetQuarry.Net
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void AddEncodedCookie(
this HttpResponse response,
string name,
string value,
string domain = null,
int expiresDays = 0
)
<ExtensionAttribute>
Public Shared Sub AddEncodedCookie (
response As HttpResponse,
name As String,
value As String,
Optional domain As String = Nothing,
Optional expiresDays As Integer = 0
)
Parameters
- response
- Type: System.WebHttpResponse
The response. - name
- Type: SystemString
The cookie name. - value
- Type: SystemString
The cookie value. - domain (Optional)
- Type: SystemString
The optional cookie domain. - expiresDays (Optional)
- Type: SystemInt32
The optional cookie expiration, in days from the current date. This is set on the cookie only if non-zero.
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).
Remarks See Also