CookieHandler.WriteCore 메서드

정의

파생 클래스에서 재정의되는 경우 지정된 이름, 값, 도메인, 경로, 만료 시간, 지속성 및 표시 유형이 있는 지정된 요청과 연결된 쿠키를 씁니다.

protected:
 abstract void WriteCore(cli::array <System::Byte> ^ value, System::String ^ name, System::String ^ path, System::String ^ domain, DateTime expirationTime, bool secure, bool httpOnly, System::Web::HttpContext ^ context);
protected abstract void WriteCore(byte[] value, string name, string path, string domain, DateTime expirationTime, bool secure, bool httpOnly, System.Web.HttpContext context);
abstract member WriteCore : byte[] * string * string * string * DateTime * bool * bool * System.Web.HttpContext -> unit
Protected MustOverride Sub WriteCore (value As Byte(), name As String, path As String, domain As String, expirationTime As DateTime, secure As Boolean, httpOnly As Boolean, context As HttpContext)

매개 변수

value
Byte[]

쿠키 값입니다.

name
String

쿠키의 이름입니다.

path
String

쿠키의 경로입니다.

domain
String

쿠키의 도메인입니다.

expirationTime
DateTime

쿠키의 만료 시간 또는 세션(세션 전용) 쿠키의 DateTime.MinValue 입니다.

secure
Boolean

true쿠키를 SSL 연결을 통해서만 사용해야 하는 경우 그렇지 않으면 . false

httpOnly
Boolean

true클라이언트 스크립트에서 쿠키를 숨겨야 하는 경우 그렇지 않으면 . false

context
HttpContext

HttpContext 요청에 대한 것입니다.

설명

쿠키를 작성하는 실제 작업을 수행하도록 오버로드된 Write 메서드에서 호출됩니다. 메서드는 Write 비어있 value 지 않은 바이트 배열이고 비어 있는 문자열이 namepath 아닌지 확인합니다.

구현자 참고

이 메서드를 재정의해야 합니다. 구현은 전적으로 개발자에게 달려 있습니다. 일반적인 경우 구현은 쿠키 데이터를 컬렉션에 Cookies 씁니다. 그러나 이는 요구 사항이 아닙니다. 메서드의 대부분의 매개 변수는 일반적으로 하나 이상의 HttpCookie 개체에 해당하는 속성을 설정하는 데 사용됩니다.

적용 대상