ProcessModelSection.UserName 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Windows ID의 사용자 이름을 나타내는 값을 가져오거나 설정합니다.
public:
property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userName", DefaultValue="machine")]
public string UserName { get; set; }
[<System.Configuration.ConfigurationProperty("userName", DefaultValue="machine")>]
member this.UserName : string with get, set
Public Property UserName As String
속성 값
사용자 이름입니다. 기본값은 Machine입니다.
- 특성
예제
다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 UserName .
// Get the current UserName property value.
string userName =
processModelSection.UserName;
// Set the UserName property to "CustomUser".
processModelSection.UserName = "CustomUser";
' Get the current UserName property value.
Dim userName As String = _
processModelSection.UserName
' Set the UserName property to "CustomUser".
processModelSection.UserName = "CustomUser"
설명
있는 UserName 경우 기본 프로세스와 다른 Windows ID를 정의합니다. 이 ID는 ASP.NET 작업자 프로세스를 실행하는 데 사용됩니다.
기본적으로 UserName Machine은 특수 값으로 설정되며 프로세스는 ASP.NET 설치될 때 자동으로 생성되는 ASPNET이라는 사용자 계정으로 실행됩니다.
속성과 Password 함께 UserName 사용해야 합니다.
이 속성 값이 있으면 구성된 Windows ID를 사용하여 작업자 프로세스가 실행됩니다.
메모
속성이 UserName System으로 설정된 경우 암호 AutoGenerate를 사용하여 프로세스를 관리 계정으로 실행하는 엔터티를 정의하고 프로세스에서 실행되는 모든 ASP.NET 사용자 코드가 전체 관리 권한을 가질 수 있도록 합니다. 따라서 허용되는 권한에 대해 이 경우에 주의해야 합니다.