RemoteArgument Constructors

Definition

Initializes a new instance of the RemoteArgument class.

Overloads

RemoteArgument(IContract)

Initializes a new instance of the RemoteArgument class that represents an IContract argument.

RemoteArgument(Boolean, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Boolean argument that can be passed by reference.

RemoteArgument(Byte, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Byte argument that can be passed by reference.

RemoteArgument(Char, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Char argument that can be passed by reference.

RemoteArgument(DateTime, Boolean)

Initializes a new instance of the RemoteArgument class that represents a DateTime argument that can be passed by reference.

RemoteArgument(DBNull, Boolean)

Initializes a new instance of the RemoteArgument class that represents a DBNull argument that can be passed by reference.

RemoteArgument(Decimal, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Decimal argument that can be passed by reference.

RemoteArgument(Double, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Double argument that can be passed by reference.

RemoteArgument(Array, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Array argument that can be passed by reference.

RemoteArgument(Int16, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int16 argument that can be passed by reference.

RemoteArgument(Int64, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int64 argument that can be passed by reference.

RemoteArgument(Single, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Single argument that can be passed by reference.

RemoteArgument(String, Boolean)

Initializes a new instance of the RemoteArgument class that represents a String argument that can be passed by reference.

RemoteArgument(UInt16, Boolean)

Initializes a new instance of the RemoteArgument class that represents a UInt16 argument that can be passed by reference.

RemoteArgument(UInt32, Boolean)

Initializes a new instance of the RemoteArgument class that represents a UInt32 argument that can be passed by reference.

RemoteArgument(UInt64, Boolean)

Initializes a new instance of the RemoteArgument class that represents a UInt64 argument that can be passed by reference.

RemoteArgument(RemoteArgumentKind, TypeCode, Boolean)

Initializes a new instance of the RemoteArgument class using the specified RemoteArgumentKind and TypeCode for an argument that can be passed by reference.

RemoteArgument(Int32, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int32 argument that can be passed by reference.

RemoteArgument(RemoteArgumentKind, TypeCode)

Initializes a new instance of the RemoteArgument class using the specified RemoteArgumentKind and TypeCode for an argument that is not passed by reference.

RemoteArgument(SByte, Boolean)

Initializes a new instance of the RemoteArgument class that represents an SByte argument that can be passed by reference.

RemoteArgument(UInt64)

Initializes a new instance of the RemoteArgument class that represents a UInt64 argument.

RemoteArgument(Array)

Initializes a new instance of the RemoteArgument class that represents an Array argument.

RemoteArgument(Boolean)

Initializes a new instance of the RemoteArgument class that represents a Boolean argument.

RemoteArgument(Byte)

Initializes a new instance of the RemoteArgument class that represents a Byte argument.

RemoteArgument(Char)

Initializes a new instance of the RemoteArgument class that represents a Char argument.

RemoteArgument(DateTime)

Initializes a new instance of the RemoteArgument class that represents a DateTime argument.

RemoteArgument(DBNull)

Initializes a new instance of the RemoteArgument class that represents a DBNull argument.

RemoteArgument(IContract, Boolean)

Initializes a new instance of the RemoteArgument class that represents an IContract argument that can be passed by reference.

RemoteArgument(Double)

Initializes a new instance of the RemoteArgument class that represents a Double argument.

RemoteArgument(Decimal)

Initializes a new instance of the RemoteArgument class that represents a Decimal argument.

RemoteArgument(Int32)

Initializes a new instance of the RemoteArgument class that represents an Int32 argument.

RemoteArgument(Int64)

Initializes a new instance of the RemoteArgument class that represents an Int64 argument.

RemoteArgument(SByte)

Initializes a new instance of the RemoteArgument class that represents an SByte argument.

RemoteArgument(Single)

Initializes a new instance of the RemoteArgument class that represents a Single argument.

RemoteArgument(String)

Initializes a new instance of the RemoteArgument class that represents a String argument.

RemoteArgument(UInt16)

Initializes a new instance of the RemoteArgument class that represents a UInt16 argument.

RemoteArgument(UInt32)

Initializes a new instance of the RemoteArgument class that represents a UInt32 argument.

RemoteArgument(Int16)

Initializes a new instance of the RemoteArgument class that represents an Int16 argument.

RemoteArgument(IContract)

Initializes a new instance of the RemoteArgument class that represents an IContract argument.

public:
 RemoteArgument(System::AddIn::Contract::IContract ^ value);
public RemoteArgument (System.AddIn.Contract.IContract value);
new System.AddIn.Contract.RemoteArgument : System.AddIn.Contract.IContract -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As IContract)

Parameters

value
IContract

An IContract argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Contract, the TypeCode property to TypeCode.Object, and the IsByRef property to false.

Applies to

RemoteArgument(Boolean, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Boolean argument that can be passed by reference.

public:
 RemoteArgument(bool value, bool isByRef);
public RemoteArgument (bool value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : bool * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Boolean, isByRef As Boolean)

Parameters

value
Boolean

A Boolean argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Boolean, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Byte, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Byte argument that can be passed by reference.

public:
 RemoteArgument(System::Byte value, bool isByRef);
public RemoteArgument (byte value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : byte * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Byte, isByRef As Boolean)

Parameters

value
Byte

A Byte argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Byte, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Char, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Char argument that can be passed by reference.

public:
 RemoteArgument(char value, bool isByRef);
public RemoteArgument (char value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : char * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Char, isByRef As Boolean)

Parameters

value
Char

A Char argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Char, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(DateTime, Boolean)

Initializes a new instance of the RemoteArgument class that represents a DateTime argument that can be passed by reference.

public:
 RemoteArgument(DateTime value, bool isByRef);
public RemoteArgument (DateTime value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : DateTime * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As DateTime, isByRef As Boolean)

Parameters

value
DateTime

A DateTime argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.DateTime, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(DBNull, Boolean)

Initializes a new instance of the RemoteArgument class that represents a DBNull argument that can be passed by reference.

public:
 RemoteArgument(DBNull ^ value, bool isByRef);
public RemoteArgument (DBNull value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : DBNull * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As DBNull, isByRef As Boolean)

Parameters

value
DBNull

A DBNull argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.DBNull, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Decimal, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Decimal argument that can be passed by reference.

public:
 RemoteArgument(System::Decimal value, bool isByRef);
public RemoteArgument (decimal value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : decimal * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Decimal, isByRef As Boolean)

Parameters

value
Decimal

A Decimal argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Decimal, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Double, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Double argument that can be passed by reference.

public:
 RemoteArgument(double value, bool isByRef);
public RemoteArgument (double value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : double * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Double, isByRef As Boolean)

Parameters

value
Double

A Double argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Double, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Array, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Array argument that can be passed by reference.

public:
 RemoteArgument(Array ^ array, bool isByRef);
public RemoteArgument (Array array, bool isByRef);
new System.AddIn.Contract.RemoteArgument : Array * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (array As Array, isByRef As Boolean)

Parameters

array
Array

An Array argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if array is an argument that is passed by reference; otherwise, false.

Exceptions

The array element type is not a base type (that is, the GetTypeCode(Type) method returns Object for the array element type).

array is null.

Remarks

This constructor sets the RemoteArgumentKind property to IntrinsicArray, the TypeCode property to the type code of the array element type, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Int16, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int16 argument that can be passed by reference.

public:
 RemoteArgument(short value, bool isByRef);
public RemoteArgument (short value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : int16 * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Short, isByRef As Boolean)

Parameters

value
Int16

An Int16 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int16, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Int64, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int64 argument that can be passed by reference.

public:
 RemoteArgument(long value, bool isByRef);
public RemoteArgument (long value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : int64 * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Long, isByRef As Boolean)

Parameters

value
Int64

An Int64 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int64, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Single, Boolean)

Initializes a new instance of the RemoteArgument class that represents a Single argument that can be passed by reference.

public:
 RemoteArgument(float value, bool isByRef);
public RemoteArgument (float value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : single * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Single, isByRef As Boolean)

Parameters

value
Single

A Single argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Single, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(String, Boolean)

Initializes a new instance of the RemoteArgument class that represents a String argument that can be passed by reference.

public:
 RemoteArgument(System::String ^ value, bool isByRef);
public RemoteArgument (string value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : string * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As String, isByRef As Boolean)

Parameters

value
String

A String argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.String, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(UInt16, Boolean)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt16 argument that can be passed by reference.

public:
 RemoteArgument(System::UInt16 value, bool isByRef);
[System.CLSCompliant(false)]
public RemoteArgument (ushort value, bool isByRef);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint16 * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As UShort, isByRef As Boolean)

Parameters

value
UInt16

A UInt16 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt16, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(UInt32, Boolean)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt32 argument that can be passed by reference.

public:
 RemoteArgument(System::UInt32 value, bool isByRef);
[System.CLSCompliant(false)]
public RemoteArgument (uint value, bool isByRef);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint32 * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As UInteger, isByRef As Boolean)

Parameters

value
UInt32

A UInt32 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt32, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(UInt64, Boolean)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt64 argument that can be passed by reference.

public:
 RemoteArgument(System::UInt64 value, bool isByRef);
[System.CLSCompliant(false)]
public RemoteArgument (ulong value, bool isByRef);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint64 * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As ULong, isByRef As Boolean)

Parameters

value
UInt64

A UInt64 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt64, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(RemoteArgumentKind, TypeCode, Boolean)

Initializes a new instance of the RemoteArgument class using the specified RemoteArgumentKind and TypeCode for an argument that can be passed by reference.

public:
 RemoteArgument(System::AddIn::Contract::RemoteArgumentKind remoteArgKind, TypeCode typeCode, bool isByRef);
public RemoteArgument (System.AddIn.Contract.RemoteArgumentKind remoteArgKind, TypeCode typeCode, bool isByRef);
new System.AddIn.Contract.RemoteArgument : System.AddIn.Contract.RemoteArgumentKind * TypeCode * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (remoteArgKind As RemoteArgumentKind, typeCode As TypeCode, isByRef As Boolean)

Parameters

remoteArgKind
RemoteArgumentKind

One of the RemoteArgumentKind values that indicates whether the RemoteArgument represents an intrinsic type, an array of intrinsic types, an IContract, or the Missing value.

typeCode
TypeCode

A TypeCode that specifies the base type of the remote argument.

isByRef
Boolean

true if the remote argument is passed by reference; otherwise, false.

Exceptions

remoteArgKind is Intrinsic or IntrinsicArray, and typeCode is Object or Empty.

-or-

remoteArgKind is Missing and typeCode is not Empty.

-or-

remoteArgKind is Contract and typeCode is not Object.

remoteArgKind is not a valid RemoteArgumentKind value.

Remarks

This constructor assigns the default value of the data type specified by the typeCode parameter to the RemoteArgument.

An intrinsic data type is a primitive data type (that is, the Type.IsPrimitive property of the type is true) or a String, Decimal, DateTime, or DBNull.

Applies to

RemoteArgument(Int32, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int32 argument that can be passed by reference.

public:
 RemoteArgument(int value, bool isByRef);
public RemoteArgument (int value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : int * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Integer, isByRef As Boolean)

Parameters

value
Int32

An Int32 argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int32, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(RemoteArgumentKind, TypeCode)

Initializes a new instance of the RemoteArgument class using the specified RemoteArgumentKind and TypeCode for an argument that is not passed by reference.

public:
 RemoteArgument(System::AddIn::Contract::RemoteArgumentKind remoteArgKind, TypeCode typeCode);
public RemoteArgument (System.AddIn.Contract.RemoteArgumentKind remoteArgKind, TypeCode typeCode);
new System.AddIn.Contract.RemoteArgument : System.AddIn.Contract.RemoteArgumentKind * TypeCode -> System.AddIn.Contract.RemoteArgument
Public Sub New (remoteArgKind As RemoteArgumentKind, typeCode As TypeCode)

Parameters

remoteArgKind
RemoteArgumentKind

One of the RemoteArgumentKind values that indicates whether the RemoteArgument represents an intrinsic type, an array of intrinsic types, an IContract, or the Missing value.

typeCode
TypeCode

A TypeCode that specifies the base type of the remote argument.

Exceptions

remoteArgKind is Intrinsic or IntrinsicArray, and typeCode is Object or Empty.

-or-

remoteArgKind is Missing and typeCode is not Empty.

-or-

remoteArgKind is Contract and typeCode is not Object.

Remarks

This constructor assigns the default value of the data type specified by the typeCode parameter to the RemoteArgument.

An intrinsic data type is a primitive data type (that is, the Type.IsPrimitive property of the type is true) or a String, Decimal, DateTime, or DBNull.

Applies to

RemoteArgument(SByte, Boolean)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents an SByte argument that can be passed by reference.

public:
 RemoteArgument(System::SByte value, bool isByRef);
[System.CLSCompliant(false)]
public RemoteArgument (sbyte value, bool isByRef);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : sbyte * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As SByte, isByRef As Boolean)

Parameters

value
SByte

An SByte argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.SByte, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(UInt64)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt64 argument.

public:
 RemoteArgument(System::UInt64 value);
[System.CLSCompliant(false)]
public RemoteArgument (ulong value);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint64 -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As ULong)

Parameters

value
UInt64

A UInt64 argument that can be passed across process or application domain boundaries.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt64, and the IsByRef property to false.

Applies to

RemoteArgument(Array)

Initializes a new instance of the RemoteArgument class that represents an Array argument.

public:
 RemoteArgument(Array ^ array);
public RemoteArgument (Array array);
new System.AddIn.Contract.RemoteArgument : Array -> System.AddIn.Contract.RemoteArgument
Public Sub New (array As Array)

Parameters

array
Array

An Array argument that can be passed across process or application domain boundaries.

Exceptions

The array element type is not a base type (that is, the GetTypeCode(Type) method for the array element type returns Object).

array is null.

Remarks

This constructor sets the RemoteArgumentKind property to IntrinsicArray, the TypeCode property to the type code of the array element type, and the IsByRef property to false.

Applies to

RemoteArgument(Boolean)

Initializes a new instance of the RemoteArgument class that represents a Boolean argument.

public:
 RemoteArgument(bool value);
public RemoteArgument (bool value);
new System.AddIn.Contract.RemoteArgument : bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Boolean)

Parameters

value
Boolean

A Boolean argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Boolean, and the IsByRef property to false.

Applies to

RemoteArgument(Byte)

Initializes a new instance of the RemoteArgument class that represents a Byte argument.

public:
 RemoteArgument(System::Byte value);
public RemoteArgument (byte value);
new System.AddIn.Contract.RemoteArgument : byte -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Byte)

Parameters

value
Byte

A Byte argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Byte, and the IsByRef property to false.

Applies to

RemoteArgument(Char)

Initializes a new instance of the RemoteArgument class that represents a Char argument.

public:
 RemoteArgument(char value);
public RemoteArgument (char value);
new System.AddIn.Contract.RemoteArgument : char -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Char)

Parameters

value
Char

A Char argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Char, and the IsByRef property to false.

Applies to

RemoteArgument(DateTime)

Initializes a new instance of the RemoteArgument class that represents a DateTime argument.

public:
 RemoteArgument(DateTime value);
public RemoteArgument (DateTime value);
new System.AddIn.Contract.RemoteArgument : DateTime -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As DateTime)

Parameters

value
DateTime

A DateTime argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.DateTime, and the IsByRef property to false.

Applies to

RemoteArgument(DBNull)

Initializes a new instance of the RemoteArgument class that represents a DBNull argument.

public:
 RemoteArgument(DBNull ^ value);
public RemoteArgument (DBNull value);
new System.AddIn.Contract.RemoteArgument : DBNull -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As DBNull)

Parameters

value
DBNull

A DBNull argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.DBNull, and the IsByRef property to false.

Applies to

RemoteArgument(IContract, Boolean)

Initializes a new instance of the RemoteArgument class that represents an IContract argument that can be passed by reference.

public:
 RemoteArgument(System::AddIn::Contract::IContract ^ value, bool isByRef);
public RemoteArgument (System.AddIn.Contract.IContract value, bool isByRef);
new System.AddIn.Contract.RemoteArgument : System.AddIn.Contract.IContract * bool -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As IContract, isByRef As Boolean)

Parameters

value
IContract

An IContract argument that can be passed across process or application domain boundaries.

isByRef
Boolean

true if value is an argument that is passed by reference; otherwise, false.

Remarks

This constructor sets the RemoteArgumentKind property to Contract, the TypeCode property to TypeCode.Object, and the IsByRef property to the value of the isByRef parameter.

Applies to

RemoteArgument(Double)

Initializes a new instance of the RemoteArgument class that represents a Double argument.

public:
 RemoteArgument(double value);
public RemoteArgument (double value);
new System.AddIn.Contract.RemoteArgument : double -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Double)

Parameters

value
Double

A Double argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Double, and the IsByRef property to false.

Applies to

RemoteArgument(Decimal)

Initializes a new instance of the RemoteArgument class that represents a Decimal argument.

public:
 RemoteArgument(System::Decimal value);
public RemoteArgument (decimal value);
new System.AddIn.Contract.RemoteArgument : decimal -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Decimal)

Parameters

value
Decimal

A Decimal argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Decimal, and the IsByRef property to false.

Applies to

RemoteArgument(Int32)

Initializes a new instance of the RemoteArgument class that represents an Int32 argument.

public:
 RemoteArgument(int value);
public RemoteArgument (int value);
new System.AddIn.Contract.RemoteArgument : int -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Integer)

Parameters

value
Int32

An Int32 argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int32, and the IsByRef property to false.

Applies to

RemoteArgument(Int64)

Initializes a new instance of the RemoteArgument class that represents an Int64 argument.

public:
 RemoteArgument(long value);
public RemoteArgument (long value);
new System.AddIn.Contract.RemoteArgument : int64 -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Long)

Parameters

value
Int64

An Int64 argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int64, and the IsByRef property to false.

Applies to

RemoteArgument(SByte)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents an SByte argument.

public:
 RemoteArgument(System::SByte value);
[System.CLSCompliant(false)]
public RemoteArgument (sbyte value);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : sbyte -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As SByte)

Parameters

value
SByte

An SByte argument that can be passed across process or application domain boundaries.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.SByte, and the IsByRef property to false.

Applies to

RemoteArgument(Single)

Initializes a new instance of the RemoteArgument class that represents a Single argument.

public:
 RemoteArgument(float value);
public RemoteArgument (float value);
new System.AddIn.Contract.RemoteArgument : single -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Single)

Parameters

value
Single

A Single argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Single, and the IsByRef property to false.

Applies to

RemoteArgument(String)

Initializes a new instance of the RemoteArgument class that represents a String argument.

public:
 RemoteArgument(System::String ^ value);
public RemoteArgument (string value);
new System.AddIn.Contract.RemoteArgument : string -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As String)

Parameters

value
String

A String argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.String, and the IsByRef property to false.

Applies to

RemoteArgument(UInt16)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt16 argument.

public:
 RemoteArgument(System::UInt16 value);
[System.CLSCompliant(false)]
public RemoteArgument (ushort value);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint16 -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As UShort)

Parameters

value
UInt16

A UInt16 argument that can be passed across process or application domain boundaries.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt16, and the IsByRef property to false.

Applies to

RemoteArgument(UInt32)

Important

This API is not CLS-compliant.

Initializes a new instance of the RemoteArgument class that represents a UInt32 argument.

public:
 RemoteArgument(System::UInt32 value);
[System.CLSCompliant(false)]
public RemoteArgument (uint value);
[<System.CLSCompliant(false)>]
new System.AddIn.Contract.RemoteArgument : uint32 -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As UInteger)

Parameters

value
UInt32

A UInt32 argument that can be passed across process or application domain boundaries.

Attributes

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.UInt32, and the IsByRef property to false.

Applies to

RemoteArgument(Int16)

Initializes a new instance of the RemoteArgument class that represents an Int16 argument.

public:
 RemoteArgument(short value);
public RemoteArgument (short value);
new System.AddIn.Contract.RemoteArgument : int16 -> System.AddIn.Contract.RemoteArgument
Public Sub New (value As Short)

Parameters

value
Int16

An Int16 argument that can be passed across process or application domain boundaries.

Remarks

This constructor sets the RemoteArgumentKind property to Intrinsic, the TypeCode property to TypeCode.Int16, and the IsByRef property to false.

Applies to