HttpContentHeaderCollection.Insert(String, String) Method
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.
Inserts or replaces an item in the HttpContentHeaderCollection with the specified key and value.
public:
virtual bool Insert(Platform::String ^ key, Platform::String ^ value) = IMap<Platform::String ^, Platform::String ^>::Insert;
bool Insert(winrt::hstring const& key, winrt::hstring const& value);
public bool Insert(string key, string value);
function insert(key, value)
Public Function Insert (key As String, value As String) As Boolean
Parameters
- key
-
String
Platform::String
winrt::hstring
The key of the item to be inserted.
- value
-
String
Platform::String
winrt::hstring
The value of the item to insert.
Returns
bool
true if an item with the specified key is an existing item that was replaced; otherwise false.
Implements
Remarks
When programming with .NET, this method is hidden and developers should use the Add methods.