OutputCacheProfileCollection.Get Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u het opgegeven OutputCacheProfileCollection element op.
Overloads
| Name | Description |
|---|---|
| Get(Int32) |
Hiermee haalt u het OutputCacheProfile element op de opgegeven index op. |
| Get(String) |
Hiermee haalt u het OutputCacheProfile element op met de opgegeven naam. |
Get(Int32)
Hiermee haalt u het OutputCacheProfile element op de opgegeven index op.
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
De index van het OutputCacheProfileCollection element.
Retouren
Het OutputCacheProfile element in de opgegeven index.
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u de Get methode gebruikt.
// 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")
Zie ook
Van toepassing op
Get(String)
Hiermee haalt u het OutputCacheProfile element op met de opgegeven naam.
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
De naam van het OutputCacheProfileCollection element.
Retouren
Het OutputCacheProfile element met de opgegeven naam.
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u de Get methode gebruikt.
// 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")