ClientTarget.UserAgent 속성

정의

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

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

속성 값

사용자 에이전트의 식별 이름입니다.

특성

예제

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


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

           // Get he user agent.
           userAgent = clientTarget.UserAgent;

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

' Get he user agent.
userAgent = clientTarget.UserAgent

msg = String.Format( _
"User Agent: {0}" + ControlChars.Lf, userAgent)

설명

UserAgent 속성은 참조를 userAgent 특성을 add 요소에는 clientTarget 구성 파일의 섹션입니다.

ASP.NET 구성 기본값 다양 한 Microsoft Internet Explorer 버전에 대 한 페이지를 사용자 지정을 허용 합니다. 별칭을 찾아야 그중에서 uplevel, HTML 및 Internet Explorer 4.0 이상, 지원 되는 ECMAScript 클라이언트에 보낼 ASP.NET에 지시 하는 및 downlevel, HTML 및 보다 이전 브라우저에서 지원 되는 스크립트를 제한 하는 ASP.NET에 지시 하는 Internet Explorer 4.0입니다.

적용 대상

추가 정보