ConfigurationElement.Item[String] 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 attribute with the specified name.
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ attributeName); void set(System::String ^ attributeName, System::Object ^ value); };
public object this[string attributeName] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(attributeName As String) As Object
Parameters
- attributeName
- String
The name of the attribute.
Property Value
A ConfigurationAttribute object that has the specified attributeName
.
Remarks
You can also get or set an attribute value by using the GetAttributeValue or SetAttributeValue methods. For best system performance, you should use these methods rather than the Item[] property.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for