ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a property, attribute, or child element of this ConfigurationElement object.
Overloads
Item[Int32] |
Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified index. |
Item[Object] |
Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified key. |
Item[Int32]
Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified index.
public:
property ConfigurationElementType default[int] { ConfigurationElementType get(int index); void set(int index, ConfigurationElementType value); };
public ConfigurationElementType this[int index] { get; set; }
member this.Item(int) : 'ConfigurationElementType with get, set
Default Public Property Item(index As Integer) As ConfigurationElementType
Parameters
- index
- Int32
The index of the element to be accessed.
Property Value
The item located at the specified index within the collection.
Exceptions
index
is null
.
Applies to
Item[Object]
Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified key.
public:
virtual property ConfigurationElementType default[System::Object ^] { ConfigurationElementType get(System::Object ^ key); void set(System::Object ^ key, ConfigurationElementType value); };
public virtual ConfigurationElementType this[object key] { get; set; }
member this.Item(obj) : 'ConfigurationElementType with get, set
Default Public Overridable Property Item(key As Object) As ConfigurationElementType
Parameters
- key
- Object
The key of the element to be accessed.
Property Value
The item located at the specified key within the collection.
Exceptions
key
is null
.
key
is not found.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기