다음을 통해 공유


IdentitySection.UserName 속성

정의

가장에 사용할 사용자 이름을 나타내는 값을 가져오거나 설정합니다.

public:
 property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userName", DefaultValue="")]
public string UserName { get; set; }
[<System.Configuration.ConfigurationProperty("userName", DefaultValue="")>]
member this.UserName : string with get, set
Public Property UserName As String

속성 값

String

가장에 사용할 사용자 이름입니다.

특성

예제

다음 코드 예제에서는 UserName 속성에 액세스하는 방법을 보여 줍니다. 코드 예제를 참조 하십시오는 IdentitySection 클래스 섹션에 액세스 하는 방법을 알아봅니다.

// Get the UserName property value.
string currentUserName = identitySection.UserName;

// Set the UserName property value.
identitySection.UserName = "userName";
' Get the UserName property value.
Dim currentUserName As String = identitySection.UserName

' Set the UserName property value.
identitySection.UserName = "userName"

설명

사용자 이름에 일반 텍스트로 저장 되므로 해당 서버가 있는 도메인에서 적절 한 자격 증명을 사용 하 여 인증된 된 사용자 읽을 수 있습니다.

참고

보안상의 이유로 ID 섹션은 암호화된 UserNamePassword의 스토리지를 지원합니다.

적용 대상