次の方法で共有


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

こちらもご覧ください

適用対象