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

另请参阅

适用于