OutputCacheProfileCollection.Set Method (OutputCacheProfile)

 

Sets the specified OutputCacheProfile object.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public void Set(
	OutputCacheProfile user
)

The Set method modifies an existing OutputCacheProfileCollection element.

The following code example shows how to use the Set method.

// Using method RemoveAt.
formsAuthenticationCredentials.Users.RemoveAt(0);

if (!authenticationSection.SectionInformation.IsLocked)
{
    configuration.Save();
}

.NET Framework
Available since 2.0
Return to top
Show: