ProfileManager.AutomaticSaveEnabled 속성

정의

사용자 프로필이 ASP.NET 페이지의 실행이 끝날 때 자동으로 저장되는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

사용자 프로필이 ASP.NET 페이지의 실행이 끝날 때 자동으로 저장되면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예외

최소한 AutomaticSaveEnabled 권한 없이 Medium 속성 값을 가져오려고 한 경우

예제

다음 구성 파일 발췌는 ASP.NET 애플리케이션에 대한 Web.config 파일의 system.web 섹션에 있는 프로필 요소를 보여줍니다. 애플리케이션의 기본 프로필 공급자를 지정는 SqlProfileProvider 집합과 인스턴스를 automaticSaveEnabled 특성을 true입니다.

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

설명

AutomaticSaveEnabled 속성 애플리케이션에 대 한 사용자 프로필의 자동 저장을 사용 하는지 여부를 나타냅니다. 자동 저장을 사용하도록 설정 ProfileModule 하면 개체는 이벤트를 발생 ProfileAutoSaving 시키고 ASP.NET 페이지 실행이 끝날 때 이벤트 중에 EndRequest 메서드를 호출 Save 합니다.

속성은 AutomaticSaveEnabled ASP.NET 애플리케이션에 대한 Web.config 파일의 프로필 요소 특성을 사용하여 automaticSaveEnabled 설정됩니다.

적용 대상

추가 정보