다음을 통해 공유


ClientTarget.Alias 속성

정의

사용자 에이전트의 별칭을 가져옵니다.

public:
 property System::String ^ Alias { System::String ^ get(); };
[System.Configuration.ConfigurationProperty("alias", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Alias { get; }
[<System.Configuration.ConfigurationProperty("alias", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Alias : string
Public ReadOnly Property Alias As String

속성 값

특정 사용자 에이전트를 참조하는 데 사용되는 이름입니다.

특성

예제

다음 코드 예제에서는 기존 웹 애플리케이션의 Alias 구성 파일에서 가져오는 방법을 보여줍니다.


// Get the first client target 
// in the collection.
clientTarget = clientTargets[0];

// Get the alias.
alias = clientTarget.Alias;

msg = String.Format(
      "Alias:      {0}\n",
      alias);
' Get the first client target 
' in the collection.
clientTarget = clientTargets(0)

' Get the alias.
aliasStr = clientTarget.Alias

msg = String.Format( _
"Alias:      {0}" + ControlChars.Lf, aliasStr)

설명

속성은 Aliasalias 구성 파일의 섹션에 add 있는 clientTarget 요소의 특성을 참조합니다.

ASP.NET 구성 기본값에는 다음 별칭이 포함됩니다.

  • uplevel- Internet Explorer 6.0 이상 버전에서 지원하는 HTML 및 ECMAScript를 보내도록 ASP.NET 지시합니다.

  • downlevel- html 및 스크립트를 Internet Explorer 6.0 이전의 브라우저에서 지원하는 버전으로 제한하도록 ASP.NET 지시합니다.

적용 대상

추가 정보