TypeElementCollection.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 an element in the collection.
Overloads
Item[Int32] |
Gets or sets the element at a specified index in the collection. |
Item[Object] |
Gets or sets the TypeElement that has the specified key in the collection. |
Item[Int32]
Gets or sets the element at a specified index in the collection.
public:
property System::Web::Services::Configuration::TypeElement ^ default[int] { System::Web::Services::Configuration::TypeElement ^ get(int index); void set(int index, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(index As Integer) As TypeElement
Parameters
- index
- Int32
The zero-based index into the collection.
Property Value
The TypeElement that exists at the specified index.
Applies to
Item[Object]
Gets or sets the TypeElement that has the specified key in the collection.
public:
property System::Web::Services::Configuration::TypeElement ^ default[System::Object ^] { System::Web::Services::Configuration::TypeElement ^ get(System::Object ^ key); void set(System::Object ^ key, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[object key] { get; set; }
member this.Item(obj) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(key As Object) As TypeElement
Parameters
- key
- Object
The key of the TypeElement to get or set in the collection.
Property Value
The TypeElement with the specified key.
Exceptions
The TypeElement with the specified key was not found in the collection.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈