WebHeaderCollection.AddWithoutValidate(String, String) 메서드

정의

제한된 헤더 목록에 있는 헤더인지 확인하지 않고 헤더를 컬렉션에 삽입합니다.

protected:
 void AddWithoutValidate(System::String ^ headerName, System::String ^ headerValue);
protected void AddWithoutValidate (string headerName, string? headerValue);
protected void AddWithoutValidate (string headerName, string headerValue);
member this.AddWithoutValidate : string * string -> unit
Protected Sub AddWithoutValidate (headerName As String, headerValue As String)

매개 변수

headerName
String

컬렉션에 추가할 헤더입니다.

headerValue
String

헤더의 내용입니다.

예외

headerNamenull 또는 Empty이거나 잘못된 문자를 포함하는 경우

또는

headerValue에 잘못된 문자가 들어 있는 경우

.NET Framework 및 .NET Core만 해당: headerNamenull이 아니고 headerValue의 길이가 너무 긴 경우(65,535자보다 큼)

설명

메서드는 AddWithoutValidate 헤더가 제한된 헤더 목록에 있는지 여부를 확인하지 않고 컬렉션에 헤더를 추가합니다.

참고

headerValue 길이는 .NET Framework 및 .NET Core 버전 2.0 - 3.1에서만 유효성을 검사합니다.

상속자 참고

메서드를 AddWithoutValidate(String, String) 사용하여 속성을 통해 일반적으로 노출되는 헤더를 추가합니다.

적용 대상