IRemoteArgumentDictionaryContract.Add(RemoteArgument, RemoteArgument) 方法

定义

IRemoteArgumentDictionaryContract 中添加一个具有指定的键和值的元素。Adds an element with a specified key and value to the IRemoteArgumentDictionaryContract.

public:
 void Add(System::AddIn::Contract::RemoteArgument key, System::AddIn::Contract::RemoteArgument value);
public void Add (System.AddIn.Contract.RemoteArgument key, System.AddIn.Contract.RemoteArgument value);
abstract member Add : System.AddIn.Contract.RemoteArgument * System.AddIn.Contract.RemoteArgument -> unit
Public Sub Add (key As RemoteArgument, value As RemoteArgument)

参数

key
RemoteArgument

用作要添加的元素的键的 RemoteArgumentThe RemoteArgument to use as the key of the element to add.

value
RemoteArgument

用作要添加的元素的键的 RemoteArgumentThe RemoteArgument to use as the value of the element to add.

例外

IRemoteArgumentDictionaryContract 中已存在具有相同键的元素。An element with the same key already exists in the IRemoteArgumentDictionaryContract.

适用于