OutputCacheProfileCollection.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈