Add Method (String, Object, Type)

HttpServer.dll

Adds an argument. Allows for argumentObject to be null (Will throw ArgumentException Add(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,
	Type argumentType
)
Visual Basic (Declaration)
Public Sub Add ( _
	argumentName As String, _
	argumentObject As Object, _
	argumentType As Type _
)
Visual C++
public:
void Add(
	String^ argumentName, 
	Object^ argumentObject, 
	Type^ argumentType
)

Parameters

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

[Missing <param name="argumentObject"/> documentation for "M:HttpServer.Rendering.TemplateArguments.Add(System.String,System.Object,System.Type)"]

argumentType
Type: System..::.Type
Cannot be null

Exceptions

ExceptionCondition
System..::.NullReferenceExceptionIf argumentName or argumentType is null
System..::.ArgumentExceptionIf an argument named argumentName already exists or argumentObject != null and typeof(argumentObject) differs from argumentType

See Also