OutputCacheProfileCollection.Set(OutputCacheProfile) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
OutputCacheProfileCollection es de solo lectura.
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 .