TemplateArguments Constructor (Object[])

HttpServer.dll

Initializes the class with the objects in the parameterlist. Note that each object that is null must be followed by a type.

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

Syntax

C#
public TemplateArguments(
	params Object[] arguments
)
Visual Basic (Declaration)
Public Sub New ( _
	ParamArray arguments As Object() _
)
Visual C++
public:
TemplateArguments(
	... array<Object^>^ arguments
)

Parameters

arguments
Type: array< System..::.Object >[]()[]
Should contain ordered pairs/truples of string, object and type where type is optional if the object isn´t null

Examples

new TemplateArguments("Dir", "\", "Users", null, typeof(User));

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIf optional type differs from type of object (if object != null) or argument name is duplicate
System..::.ArgumentExceptionIf the order of objects is incorrect
System..::.ArgumentNullExceptionIf any argument name or type is null

See Also