OutputCacheProfileCollection.Set(OutputCacheProfile) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
OutputCacheProfileCollection est en lecture seule.
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 .