CookieHandler.Write 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
쿠키를 씁니다.
오버로드
| Name | Description |
|---|---|
| Write(Byte[], Boolean, DateTime) |
지정된 값, 지속성 및 만료 시간이 있는 현재 요청과 연결된 쿠키를 씁니다. |
| Write(Byte[], String, DateTime) |
지정된 이름, 값 및 만료 시간이 있는 현재 요청과 연결된 쿠키를 씁니다. |
| Write(Byte[], String, DateTime, HttpContext) |
지정된 이름, 값 및 만료 시간이 있는 지정된 요청과 연결된 쿠키를 씁니다. |
| Write(Byte[], String, String, String, DateTime, Boolean, Boolean, HttpContext) |
지정된 이름, 값, 도메인, 경로, 만료 시간 및 표시 유형이 있는 지정된 요청과 연결된 쿠키를 씁니다. |
Write(Byte[], Boolean, DateTime)
지정된 값, 지속성 및 만료 시간이 있는 현재 요청과 연결된 쿠키를 씁니다.
public:
void Write(cli::array <System::Byte> ^ value, bool isPersistent, DateTime tokenExpirationTime);
public void Write(byte[] value, bool isPersistent, DateTime tokenExpirationTime);
member this.Write : byte[] * bool * DateTime -> unit
Public Sub Write (value As Byte(), isPersistent As Boolean, tokenExpirationTime As DateTime)
매개 변수
- value
- Byte[]
쿠키 값입니다.
- isPersistent
- Boolean
- tokenExpirationTime
- DateTime
기본 토큰의 만료 시간입니다.
예외
value 가 있거나 비어 있습니다 null .
설명
매개 변수인 isPersistentfalse경우 쿠키 만료 시간은 .로 DateTime.MinValue설정됩니다. 매개 변수인 isPersistenttrue경우 쿠키 만료 시간은 속성이 아닌 null 경우 속성 값 PersistentSessionLifetime 으로 설정되거나, 속성이 null아니면 PersistentSessionLifetime 만료 시간이 매개 변수 값 tokenExpirationTime 으로 설정됩니다.
쿠키 이름, 도메인 및 경로는 , Domain및 Path 속성에 Name의해 지정됩니다. 요청은 .에 의해 Current지정됩니다. 쿠키를 SSL을 통해서만 보내야 하는지 여부는 속성에 의해 RequireSsl 지정되며, 쿠키를 클라이언트 쪽 스크립트에서 숨길지 여부는 속성에 HideFromClientScript 의해 지정됩니다.
적용 대상
Write(Byte[], String, DateTime)
지정된 이름, 값 및 만료 시간이 있는 현재 요청과 연결된 쿠키를 씁니다.
public:
void Write(cli::array <System::Byte> ^ value, System::String ^ name, DateTime expirationTime);
public void Write(byte[] value, string name, DateTime expirationTime);
member this.Write : byte[] * string * DateTime -> unit
Public Sub Write (value As Byte(), name As String, expirationTime As DateTime)
매개 변수
- value
- Byte[]
쿠키 값입니다.
- name
- String
쿠키의 이름입니다.
- expirationTime
- DateTime
쿠키의 만료 시간 또는 세션(세션 전용) 쿠키의 DateTime.MinValue 입니다.
예외
value 가 있거나 비어 있습니다 null .
name 가 있거나 비어 있습니다 null .
설명
쿠키 도메인 및 경로는 및 Path 속성에 Domain 의해 지정됩니다. 요청은 .에 의해 HttpContext.Current지정됩니다. 요청은 .에 의해 Current지정됩니다. 쿠키를 SSL을 통해서만 보내야 하는지 여부는 속성에 의해 RequireSsl 지정되며, 쿠키를 클라이언트 쪽 스크립트에서 숨길지 여부는 속성에 HideFromClientScript 의해 지정됩니다.
적용 대상
Write(Byte[], String, DateTime, HttpContext)
지정된 이름, 값 및 만료 시간이 있는 지정된 요청과 연결된 쿠키를 씁니다.
public:
void Write(cli::array <System::Byte> ^ value, System::String ^ name, DateTime expirationTime, System::Web::HttpContext ^ context);
public void Write(byte[] value, string name, DateTime expirationTime, System.Web.HttpContext context);
member this.Write : byte[] * string * DateTime * System.Web.HttpContext -> unit
Public Sub Write (value As Byte(), name As String, expirationTime As DateTime, context As HttpContext)
매개 변수
- value
- Byte[]
쿠키 값입니다.
- name
- String
쿠키의 이름입니다.
- expirationTime
- DateTime
쿠키의 만료 시간 또는 세션(세션 전용) 쿠키의 DateTime.MinValue 입니다.
- context
- HttpContext
HttpContext 요청에 대한 것입니다.
예외
value 가 있거나 비어 있습니다 null .
name 가 있거나 비어 있습니다 null .
설명
쿠키 도메인 및 경로는 및 Path 속성에 Domain 의해 지정됩니다. 요청은 .에 의해 Current지정됩니다. 쿠키를 SSL을 통해서만 보내야 하는지 여부는 속성에 의해 RequireSsl 지정되며, 쿠키를 클라이언트 쪽 스크립트에서 숨길지 여부는 속성에 HideFromClientScript 의해 지정됩니다.
적용 대상
Write(Byte[], String, String, String, DateTime, Boolean, Boolean, HttpContext)
지정된 이름, 값, 도메인, 경로, 만료 시간 및 표시 유형이 있는 지정된 요청과 연결된 쿠키를 씁니다.
public:
void Write(cli::array <System::Byte> ^ value, System::String ^ name, System::String ^ path, System::String ^ domain, DateTime expirationTime, bool requiresSsl, bool hideFromClientScript, System::Web::HttpContext ^ context);
public void Write(byte[] value, string name, string path, string domain, DateTime expirationTime, bool requiresSsl, bool hideFromClientScript, System.Web.HttpContext context);
member this.Write : byte[] * string * string * string * DateTime * bool * bool * System.Web.HttpContext -> unit
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)
매개 변수
- value
- Byte[]
쿠키 값입니다.
- name
- String
쿠키의 이름입니다.
- path
- String
쿠키의 경로입니다.
- domain
- String
쿠키의 도메인입니다.
- expirationTime
- DateTime
쿠키의 만료 시간 또는 세션(세션 전용) 쿠키의 DateTime.MinValue 입니다.
- requiresSsl
- Boolean
true쿠키를 SSL 연결을 통해서만 사용해야 하는 경우 그렇지 않으면 . false
- hideFromClientScript
- Boolean
true클라이언트 스크립트에서 쿠키를 숨겨야 하는 경우 그렇지 않으면 . false
- context
- HttpContext
HttpContext 요청에 대한 것입니다.
예외
value 가 있거나 비어 있습니다 null .
name 가 있거나 비어 있습니다 null .