Share via


ProfilePropertySettingsCollection.Get 方法

定義

傳回 ProfileSection 物件。

多載

Get(Int32)

傳回位於指定索引處的 ProfileSection 物件。

Get(String)

傳回具有指定名稱的 ProfileSection 物件。

Get(Int32)

傳回位於指定索引處的 ProfileSection 物件。

public:
 System::Web::Configuration::ProfilePropertySettings ^ Get(int index);
public System.Web.Configuration.ProfilePropertySettings Get (int index);
member this.Get : int -> System.Web.Configuration.ProfilePropertySettings
Public Function Get (index As Integer) As ProfilePropertySettings

參數

index
Int32

要取得之 ProfileSection 的索引。

傳回

位於指定索引處的 ProfileSection 物件;如果該索引處沒有任何物件,則為 null

另請參閱

適用於

Get(String)

傳回具有指定名稱的 ProfileSection 物件。

public:
 System::Web::Configuration::ProfilePropertySettings ^ Get(System::String ^ name);
public System.Web.Configuration.ProfilePropertySettings Get (string name);
member this.Get : string -> System.Web.Configuration.ProfilePropertySettings
Public Function Get (name As String) As ProfilePropertySettings

參數

name
String

要取得之 ProfileSection 的名稱。

傳回

具有指定名稱的 ProfileSection;如果該名稱不存在,則為 null

另請參閱

適用於