CookieHandler.Write 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
쿠키를 작성합니다.
오버로드
| 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
영구 쿠키인 경우 true이며, 세션 전용, 즉, 클라이언트의 브라우저가 닫힐 때까지만 유효한 경우는 false입니다.
- tokenExpirationTime
- DateTime
내부 토큰에 대한 만료 시간입니다.
예외
value가 null이거나 비어 있는 경우
설명
경우는 isPersistent 매개 변수가 false, 쿠키 만료 시간은으로 설정 됩니다 DateTime.MinValue합니다. 경우는 isPersistent 매개 변수는 true, 쿠키 만료 시간은 값으로 설정 됩니다는 PersistentSessionLifetime 있지 않으면 속성 null 또는 합니다 PersistentSessionLifetime 속성은 null, 만료 시간은 합니다 값으로설정됩니다tokenExpirationTime 매개 변수입니다.
지정 된 쿠키 이름, 도메인 및 경로가 합니다 Name, Domain, 및 Path 속성입니다. 요청 된 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이거나 비어 있는 경우
설명
쿠키 도메인 및 경로가 하 여 지정 된 된 Domain 및 Path 속성입니다. 요청 된 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이거나 비어 있는 경우
설명
쿠키 도메인 및 경로가 하 여 지정 된 된 Domain 및 Path 속성입니다. 요청 된 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
SSL 연결에서만 쿠키를 사용해야 하는 경우 true이고, 그렇지 않으면 false입니다.
- hideFromClientScript
- Boolean
쿠키를 클라이언트 스크립트에서 숨겨야 하는 경우 true이고, 그렇지 않으면 false입니다.
- context
- HttpContext
요청에 대한 HttpContext입니다.
예외
value가 null이거나 비어 있는 경우
name가 null이거나 비어 있는 경우