Export (0) Print
Expand All

RemoteArgument.CreateRemoteArgument Method (Object, Boolean)

Creates a RemoteArgument for an argument that can be passed by reference.

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

public static RemoteArgument CreateRemoteArgument(
	Object value,
	bool isByRef
)

Parameters

value
Type: System.Object

The argument that will be passed across process or application domain boundaries.

isByRef
Type: System.Boolean

true to pass the value argument by reference; otherwise, false.

Return Value

Type: System.AddIn.Contract.RemoteArgument
A RemoteArgument that represents the specified argument.

ExceptionCondition
ArgumentNullException

value is null.

ArgumentException

The TypeCode of value is TypeCode.Object and value is not an IContract.

-or-

The TypeCode of value is TypeCode.Empty and value is not set to Missing.Value.

-or-

value does not implement the IConvertible interface and value is not an Array.

-or-

value is an Array that contains elements with a TypeCode value of TypeCode.Object.

This method calls the RemoteArgument constructor that applies to the type of the value parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft