Sdílet prostřednictvím


OutputCacheProfileCollection.Set(OutputCacheProfile) Metoda

Definice

Nastaví zadaný OutputCacheProfile objekt.

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)

Parametry

user
OutputCacheProfile

Element OutputCacheProfileCollection , který se má nastavit.

Výjimky

Příklady

Následující příklad kódu ukazuje, jak použít metodu 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

Poznámky

Metoda Set upraví existující OutputCacheProfileCollection prvek.

Platí pro

Viz také