OutputCacheProfileCollection.Set(OutputCacheProfile) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Legt das angegebene OutputCacheProfile-Objekt fest.
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)
Parameter
- user
- OutputCacheProfile
Das OutputCacheProfileCollection-Element, das festgelegt werden soll.
Ausnahmen
OutputCacheProfileCollection ist schreibgeschützt.
Beispiele
Im folgenden Codebeispiel wird die Verwendung der Set-Methode veranschaulicht.
// 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
Hinweise
Die Set Methode ändert ein vorhandenes OutputCacheProfileCollection Element.