Compartir vía


OutputCacheProfileCollection.Set(OutputCacheProfile) Método

Definición

Establece el objeto OutputCacheProfile especificado.

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)

Parámetros

user
OutputCacheProfile

Elemento OutputCacheProfileCollection que se va a establecer.

Excepciones

Ejemplos

En el ejemplo de código siguiente, se muestra cómo se utiliza el método 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

Comentarios

El Set método modifica un elemento existente OutputCacheProfileCollection .

Se aplica a

Consulte también