Share via


OutputCacheProfileCollection.Get Metoda

Definice

Získá zadaný OutputCacheProfileCollection prvek.

Přetížení

Get(Int32)

OutputCacheProfile Získá element v zadaném indexu.

Get(String)

OutputCacheProfile Získá element se zadaným názvem.

Get(Int32)

OutputCacheProfile Získá element v zadaném indexu.

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

Parametry

index
Int32

Index elementu OutputCacheProfileCollection .

Návraty

Element OutputCacheProfile v zadaném indexu.

Příklady

Následující příklad kódu ukazuje, jak použít metodu Get .

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

Viz také

Platí pro

Get(String)

OutputCacheProfile Získá element se zadaným názvem.

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

Parametry

name
String

Název elementu OutputCacheProfileCollection .

Návraty

Element OutputCacheProfile se zadaným názvem.

Příklady

Následující příklad kódu ukazuje, jak použít metodu Get .

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

Viz také

Platí pro