OutputCacheProfileCollection.Get Method (String)

 

Gets the OutputCacheProfile element with the specified name.

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

public OutputCacheProfile Get(
	string name
)

Parameters

name
Type: System.String

The name of the OutputCacheProfileCollection element.

Return Value

Type: System.Web.Configuration.OutputCacheProfile

The OutputCacheProfile element with the specified name.

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

// Get the profile with the specified name.
System.Web.Configuration.OutputCacheProfile outputCacheProfile4 =
  outputCacheProfiles.Get("MyCacheProfile");

.NET Framework
Available since 2.0
Return to top
Show: