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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om