.NET Framework 클래스 라이브러리
HttpRuntimeSection.EnableVersionHeader 속성
이 문서는 수동으로 번역한 것입니다. 이 페이지와 원본 영어 콘텐츠를 동시에 보려면 보기 기본 설정을 단순 보기로 전환하십시오.
ASP.NET에서 버전 헤더를 출력할지 여부를 나타내는 값을 가져오거나 설정합니다.
어셈블리: System.Web(System.Web.dll)
구문
Visual Basic
<ConfigurationPropertyAttribute("enableVersionHeader", DefaultValue := True)> _ Public Property EnableVersionHeader As Boolean Get Set
C#
[ConfigurationPropertyAttribute("enableVersionHeader", DefaultValue = true)] public bool EnableVersionHeader { get; set; }
Visual C++
[ConfigurationPropertyAttribute(L"enableVersionHeader", DefaultValue = true)] public: property bool EnableVersionHeader { bool get (); void set (bool value); }
F#
[<ConfigurationPropertyAttribute("enableVersionHeader", DefaultValue = true)>] member EnableVersionHeader : bool with get, set
설명
이 특성은 Visual Studio에서 사용 중인 ASP.NET 버전을 확인하는 데 사용됩니다. 이 특성은 프로덕션 사이트에서 반드시 필요한 것은 아니며 비활성화할 수 있습니다.
예제
다음 예제에서는 EnableVersionHeader 속성을 사용하는 방법을 보여 줍니다.
Visual Basic
' Get the EnableVersionHeader property value. Response.Write("EnableVersionHeader: " & _ configSection.EnableVersionHeader & "<br>") ' Set the EnableVersionHeader property value to false configSection.EnableVersionHeader = False
C#
// Get the EnableVersionHeader property value. Response.Write("EnableVersionHeader: " + configSection.EnableVersionHeader + "<br>"); // Set the EnableVersionHeader property value to false configSection.EnableVersionHeader = false;
버전 정보
.NET Framework
4, 3.5, 3.0, 2.0에서 지원플랫폼
Windows 7, Windows Vista SP1 이상, Windows XP SP3, Windows XP SP2 x64 버전, Windows Server 2008(Server Core는 지원되지 않음), Windows Server 2008 R2(Server Core는 SP1 이상에서 지원됨), Windows Server 2003 SP2
.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
참고 항목