OutputCacheProfileCollection.Set(OutputCacheProfile) 메서드

정의

지정된 OutputCacheProfile 개체를 설정합니다.

public:
 void Set(System::Web::Configuration::OutputCacheProfile ^ user);
public void Set (System.Web.Configuration.OutputCacheProfile user);
member this.Set : System.Web.Configuration.OutputCacheProfile -> unit
Public Sub Set (user As OutputCacheProfile)

매개 변수

user
OutputCacheProfile

설정할 OutputCacheProfileCollection 요소입니다.

예외

예제

다음 코드 예제에서는 Set 메서드를 사용하는 방법을 보여 줍니다.

// Using method RemoveAt.
formsAuthenticationCredentials.Users.RemoveAt(0);

if (!authenticationSection.SectionInformation.IsLocked)
{
    configuration.Save();
}
' Using method RemoveAt.
formsAuthenticationCredentials.Users.RemoveAt(0)

If Not authenticationSection.SectionInformation.IsLocked Then
   configuration.Save()
End If

설명

합니다 Set 메서드는 기존 수정 OutputCacheProfileCollection 요소입니다.

적용 대상

추가 정보