SetObject Method (Object, Type)

HttpServer.dll

Sets the argument object and type. Type of the object and argumentType must correspond.

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

Syntax

C#
public void SetObject(
	Object argumentObject,
	Type argumentType
)
Visual Basic (Declaration)
Public Sub SetObject ( _
	argumentObject As Object, _
	argumentType As Type _
)
Visual C++
public:
void SetObject(
	Object^ argumentObject, 
	Type^ argumentType
)

Parameters

argumentObject
Type: System..::.Object

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

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

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionIf argumentType is null
System..::.ArgumentExceptionIf typeof(argumentObject) differs from argumentType and object != null

See Also