IRemoteArgumentDictionaryContract.Add Method (RemoteArgument, RemoteArgument)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds an element with a specified key and value to the IRemoteArgumentDictionaryContract.

Namespace:   System.AddIn.Contract.Collections
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

void Add(
	RemoteArgument key,
	RemoteArgument value
)

Parameters

key
Type: System.AddIn.Contract.RemoteArgument

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

value
Type: System.AddIn.Contract.RemoteArgument

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

Exception Condition
ArgumentException

An element with the same key already exists in the IRemoteArgumentDictionaryContract.

.NET Framework
Available since 3.5
Return to top
Show: