ProfileManager.Enabled 속성

정의

애플리케이션에 대해 사용자 프로필을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

public:
 static property bool Enabled { bool get(); };
public static bool Enabled { get; }
static member Enabled : bool
Public Shared ReadOnly Property Enabled As Boolean

속성 값

true사용자 프로필을 사용하도록 설정하면 이고, 그렇지 않으면 . false 기본값은 false입니다.

예제

다음 코드 예제에서는 사용자 프로필이 활성화된 ASP.NET 애플리케이션에 대한 Web.config 파일의 system.web 섹션에 있는 profile> 요소를 보여 줍니다.

<profile enabled="true" defaultProvider="SqlProvider">
  <providers>
    <add name="SqlProvider"
      type="System.Web.Profile.SqlProfileProvider"
      connectionStringName="SqlServices"
      applicationName="MyApplication" />
  </providers>
</profile>

설명

사용자 프로필은 enabled의 특성을 사용하여 애플리케이션에 대해 사용하도록 설정됩니다.

적용 대상

추가 정보