Partager via


OutputCacheProfileCollection.Set(OutputCacheProfile) Méthode

Définition

Définit l'objet OutputCacheProfile spécifié.

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)

Paramètres

user
OutputCacheProfile

Élément OutputCacheProfileCollection à définir.

Exceptions

Exemples

L'exemple de code suivant montre comment utiliser la méthode 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

Remarques

La Set méthode modifie un élément existant OutputCacheProfileCollection .

S’applique à

Voir aussi