Namespace: Microsoft.IdentityModel.Web
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)
Usage
Visual Basic |
---|
Dim instance As CookieHandler Dim value As Byte() Dim name As String Dim path As String Dim domain As String Dim expirationTime As DateTime Dim requiresSsl As Boolean Dim hideFromClientScript As Boolean Dim context As HttpContext instance.Write(value, name, path, domain, expirationTime, requiresSsl, hideFromClientScript, context) |
Syntax
Visual Basic |
---|
Public Sub Write ( _ value As Byte(), _ name As String, _ path As String, _ domain As String, _ expirationTime As DateTime, _ requiresSsl As Boolean, _ hideFromClientScript As Boolean, _ context As HttpContext _ ) |
C# |
---|
public void Write ( byte[] value, string name, string path, string domain, DateTime expirationTime, bool requiresSsl, bool hideFromClientScript, HttpContext context ) |
C++ |
---|
public: void Write ( array<unsigned char>^ value, String^ name, String^ path, String^ domain, DateTime expirationTime, bool requiresSsl, bool hideFromClientScript, HttpContext^ context ) |
J# |
---|
public void Write ( byte[] value, String name, String path, String domain, DateTime expirationTime, boolean requiresSsl, boolean hideFromClientScript, HttpContext context ) |
JScript |
---|
public function Write ( value : byte[], name : String, path : String, domain : String, expirationTime : DateTime, requiresSsl : boolean, hideFromClientScript : boolean, context : HttpContext ) |
Parameters
- value
-
Value for the cookie
- name
-
Name for the cookie
- path
-
Path for the cookie
- domain
-
Domain for the cookie
- expirationTime
-
Expiration time for the cookie, or MinValue for a session cookie
- requiresSsl
- hideFromClientScript
- context
-
HttpContext for the request
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException |
When name is null or empty -or- When value is null or empty |
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.