OutputCacheProfileCollection.Get Methode

Definition

Ruft das angegebene OutputCacheProfileCollection Element ab.

Überlädt

Name Beschreibung
Get(Int32)

Ruft das OutputCacheProfile Element am angegebenen Index ab.

Get(String)

Ruft das OutputCacheProfile Element mit dem angegebenen Namen ab.

Get(Int32)

Ruft das OutputCacheProfile Element am angegebenen Index ab.

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

Parameter

index
Int32

Der Index des OutputCacheProfileCollection Elements.

Gibt zurück

Das OutputCacheProfile Element am angegebenen Index.

Beispiele

Das folgende Codebeispiel zeigt, wie die Get Methode verwendet wird.

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

Weitere Informationen

Gilt für:

Get(String)

Ruft das OutputCacheProfile Element mit dem angegebenen Namen ab.

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

Parameter

name
String

Der Name des OutputCacheProfileCollection Elements.

Gibt zurück

Das OutputCacheProfile Element mit dem angegebenen Namen.

Beispiele

Das folgende Codebeispiel zeigt, wie die Get Methode verwendet wird.

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

Weitere Informationen

Gilt für: