EventMappingSettingsCollection.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 the specified EventMappingSettings object.
Overloads
Item[Int32] |
Gets or sets the EventMappingSettings object at the specified index location. |
Item[String] |
Gets the EventMappingSettings object based on the specified key in the collection. |
Item[Int32]
Gets or sets the EventMappingSettings object at the specified index location.
public:
property System::Web::Configuration::EventMappingSettings ^ default[int] { System::Web::Configuration::EventMappingSettings ^ get(int index); void set(int index, System::Web::Configuration::EventMappingSettings ^ value); };
public System.Web.Configuration.EventMappingSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.EventMappingSettings with get, set
Default Public Property Item(index As Integer) As EventMappingSettings
Parameters
- index
- Int32
A valid index of an EventMappingSettings object in the collection.
Property Value
The EventMappingSettings object at the specified index, or null
if there is no object at that index.
Examples
The following code example shows how to use the Item[] method. This code example is part of a larger example provided for the HealthMonitoringSection class.
eventMappingSetting = healthMonitoringSection.EventMappings[i];
eventMappingSetting = healthMonitoringSection.EventMappings(i)
See also
Applies to
Item[String]
Gets the EventMappingSettings object based on the specified key in the collection.
public:
property System::Web::Configuration::EventMappingSettings ^ default[System::String ^] { System::Web::Configuration::EventMappingSettings ^ get(System::String ^ key); };
public System.Web.Configuration.EventMappingSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.EventMappingSettings
Default Public ReadOnly Property Item(key As String) As EventMappingSettings
Parameters
- key
- String
The name of the EventMappingSettings object contained in the collection.
Property Value
An EventMappingSettings object.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈