语言

OutputCacheProfileCollection.Get 方法

定义

获取指定的 OutputCacheProfileCollection 元素。

重载

名称 说明
Get(Int32)

获取 OutputCacheProfile 指定索引处的元素。

Get(String)

OutputCacheProfile获取具有指定名称的元素。

Get(Int32)

获取 OutputCacheProfile 指定索引处的元素。

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

参数

index
Int32

元素的 OutputCacheProfileCollection 索引。

返回

OutputCacheProfile指定索引处的元素。

示例

下面的代码示例演示如何使用 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")

另请参阅

适用于

Get(String)

OutputCacheProfile获取具有指定名称的元素。

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

参数

name
String

元素的名称 OutputCacheProfileCollection 。

返回

OutputCacheProfile具有指定名称的元素。

示例

下面的代码示例演示如何使用 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")

另请参阅

适用于