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 要素。

例外

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 の要素を変更します。

適用対象

こちらもご覧ください