Redigeeri

Jagamisviis:


OutputCacheProfileCollection.Get Method

Definition

Gets the specified OutputCacheProfileCollection element.

Overloads

Get(Int32)

Gets the OutputCacheProfile element at the specified index.

Get(String)

Gets the OutputCacheProfile element with the specified name.

Get(Int32)

Gets the OutputCacheProfile element at the specified index.

public:
 System::Web::Configuration::OutputCacheProfile ^ Get(int index);
public System.Web.Configuration.OutputCacheProfile Get (int index);
member this.Get : int -> System.Web.Configuration.OutputCacheProfile
Public Function Get (index As Integer) As OutputCacheProfile

Parameters

index
Int32

The index of the OutputCacheProfileCollection element.

Returns

The OutputCacheProfile element at the specified index.

Examples

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");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")

See also

Applies to

Get(String)

Gets the OutputCacheProfile element with the specified name.

public:
 System::Web::Configuration::OutputCacheProfile ^ Get(System::String ^ name);
public System.Web.Configuration.OutputCacheProfile Get (string name);
member this.Get : string -> System.Web.Configuration.OutputCacheProfile
Public Function Get (name As String) As OutputCacheProfile

Parameters

name
String

The name of the OutputCacheProfileCollection element.

Returns

The OutputCacheProfile element with the specified name.

Examples

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");
'Get the profile with the specified name.
Dim outputCacheProfile4 _
As System.Web.Configuration.OutputCacheProfile = _
outputCacheProfiles.Get("MyCacheProfile")

See also

Applies to