Add Method (String, Object)

HttpServer.dll

Adds an argument. (Will throw ArgumentException on duplicates since adding an argument twice points to incorrect code, for ways around this Update(String, Object)

Namespace:  HttpServer.Rendering
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void Add(
	string argumentName,
	Object argumentObject
)
Visual Basic (Declaration)
Public Sub Add ( _
	argumentName As String, _
	argumentObject As Object _
)
Visual C++
public:
void Add(
	String^ argumentName, 
	Object^ argumentObject
)

Parameters

argumentName
Type: System..::.String
Cannot be null
argumentObject
Type: System..::.Object
Cannot be null

Exceptions

ExceptionCondition
System..::.NullReferenceExceptionIf argumentName or argumentObject is null
System..::.ArgumentExceptionIf an argument named argumentName already exists

See Also