WebControlsSection.ClientScriptsLocation WebControlsSection.ClientScriptsLocation WebControlsSection.ClientScriptsLocation WebControlsSection.ClientScriptsLocation Property

정의

클라이언트 스크립트 위치를 가져옵니다.Gets the client scripts location.

public:
 property System::String ^ ClientScriptsLocation { System::String ^ get(); };
[System.Configuration.ConfigurationProperty("clientScriptsLocation", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string ClientScriptsLocation { get; }
member this.ClientScriptsLocation : string
Public ReadOnly Property ClientScriptsLocation As String

속성 값

클라이언트 스크립트의 위치입니다.The location of the client scripts.

예제

다음 코드 예제에서는 가져오는 방법을 보여 줍니다는 ClientScriptsLocation합니다.The following code example shows how to obtain the ClientScriptsLocation.


// Get the Web application configuration.
System.Configuration.Configuration configuration =
    WebConfigurationManager.OpenWebConfiguration(
    "/aspnetTest");

// Get the <webControls> section.
WebControlsSection webControlsSection =
  (WebControlsSection)configuration.GetSection(
  "system.web/webControls");

// Read the client script location.
string clientScriptLocation =
    webControlsSection.ClientScriptsLocation;

string msg = String.Format(
"Client script location: {0}\n",
clientScriptLocation);

Console.Write(msg);


' Get the Web application configuration.
Dim configuration _
As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")

' Get the <webControls> section.
Dim webControlsSection _
As WebControlsSection = _
CType(configuration.GetSection( _
"system.web/webControls"), WebControlsSection)

' Read the client script location.
Dim clientScriptLocation As String = _
webControlsSection.ClientScriptsLocation

Dim msg As String = _
String.Format( _
"Client script location: {0}" + _
ControlChars.Lf, clientScriptLocation)
Console.Write(msg)

설명

클라이언트 스크립트 및 사용에 대 한 자세한 내용은를 참조 ASP.NET 웹 페이지에서 클라이언트 스크립트합니다.For details about the client scripts and their use, refer to Client Script in ASP.NET Web Pages.

적용 대상

추가 정보