HttpResponseHeadersAdd Method

Adds an element with the provided key and value to the IDictionaryTKey, TValue.


Namespace: TcHmiSrv.Core.Tools.Net.Http
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public void Add(
    string key,
    string value
)

Parameters

key  String

The object to use as the key of the element to add.

value  String

The object to use as the value of the element to add.

Implements

IDictionaryTKey, TValueAdd(TKey, TValue)

Exceptions

Exception

Condition

ArgumentNullException

key is .

ArgumentException

An element with the same key already exists in the IDictionaryTKey, TValue.

NotSupportedException

The IDictionaryTKey, TValue is read-only.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

HttpResponseHeaders Class TcHmiSrv.Core.Tools.Net.Http Namespace

Copyright © Beckhoff Automation GmbH & Co. KG