ProfileSettingsCollection.Item[] 속성

정의

지정된 ProfileSettings 개체를 가져오거나 설정합니다.

오버로드

Item[Int32]

컬렉션의 지정된 인덱스에 있는 ProfileSettings 개체를 가져오거나 설정합니다.

Item[String]

컬렉션의 지정된 키에 따라 ProfileSettings 개체를 가져옵니다.

Item[Int32]

컬렉션의 지정된 인덱스에 있는 ProfileSettings 개체를 가져오거나 설정합니다.

public:
 property System::Web::Configuration::ProfileSettings ^ default[int] { System::Web::Configuration::ProfileSettings ^ get(int index); void set(int index, System::Web::Configuration::ProfileSettings ^ value); };
public System.Web.Configuration.ProfileSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.ProfileSettings with get, set
Default Public Property Item(index As Integer) As ProfileSettings

매개 변수

index
Int32

컬렉션에 있는 ProfileSettings 개체의 인덱스입니다.

속성 값

ProfileSettings

지정된 인덱스에 있는 ProfileSettings 개체이거나, 해당 인덱스에 개체가 없으면 null입니다.

예제

다음 코드 예제에서는 Item[] 메서드를 사용하는 방법을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 HealthMonitoringSection 클래스입니다.

profileSetting = healthMonitoringSection.Profiles[i];
profileSetting = healthMonitoringSection.Profiles(i)

추가 정보

적용 대상

Item[String]

컬렉션의 지정된 키에 따라 ProfileSettings 개체를 가져옵니다.

public:
 property System::Web::Configuration::ProfileSettings ^ default[System::String ^] { System::Web::Configuration::ProfileSettings ^ get(System::String ^ key); };
public System.Web.Configuration.ProfileSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.ProfileSettings
Default Public ReadOnly Property Item(key As String) As ProfileSettings

매개 변수

key
String

컬렉션에 포함된 ProfileSettings 개체의 이름입니다.

속성 값

ProfileSettings

ProfileSettings 개체입니다.

적용 대상