IHeaderDictionary.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.
IHeaderDictionary has a different indexer contract than IDictionary, where it will return StringValues.Empty for missing entries.
public:
property Microsoft::Extensions::Primitives::StringValues default[System::String ^] { Microsoft::Extensions::Primitives::StringValues get(System::String ^ key); void set(System::String ^ key, Microsoft::Extensions::Primitives::StringValues value); };
public Microsoft.Extensions.Primitives.StringValues this[string key] { get; set; }
member this.Item(string) : Microsoft.Extensions.Primitives.StringValues with get, set
Default Public Property Item(key As String) As StringValues
Parameters
- key
- String
Property Value
The stored value, or StringValues.Empty if the key is not present.
Implements
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