OutputCacheProfileCollection.Set(OutputCacheProfile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the specified OutputCacheProfile object.
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)
Parameters
- user
- OutputCacheProfile
The OutputCacheProfileCollection element to set.
Exceptions
The OutputCacheProfileCollection is read-only.
Examples
The following code example shows how to use the Set method.
// 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
Remarks
The Set method modifies an existing OutputCacheProfileCollection element.
Applies to
See also
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für