OutputCacheProfileCollection.Get Metod

Definition

Hämtar det angivna OutputCacheProfileCollection elementet.

Överlagringar

Name Description
Get(Int32)

Hämtar elementet OutputCacheProfile vid det angivna indexet.

Get(String)

Hämtar elementet OutputCacheProfile med det angivna namnet.

Get(Int32)

Hämtar elementet OutputCacheProfile vid det angivna indexet.

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

Parametrar

index
Int32

Elementets OutputCacheProfileCollection index.

Returer

Elementet OutputCacheProfile i det angivna indexet.

Exempel

I följande kodexempel visas hur metoden Get används.

// 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")

Se även

Gäller för

Get(String)

Hämtar elementet OutputCacheProfile med det angivna namnet.

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

Parametrar

name
String

Namnet på elementet OutputCacheProfileCollection .

Returer

Elementet OutputCacheProfile med det angivna namnet.

Exempel

I följande kodexempel visas hur metoden Get används.

// 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")

Se även

Gäller för