RemoteArgument RemoteArgument RemoteArgument RemoteArgument Struct

Definition

Represents an instance of a type that can be passed across process and application domain boundaries.

public value class RemoteArgument
[System.Serializable]
public struct RemoteArgument
type RemoteArgument = struct
Public Structure RemoteArgument
Inheritance
RemoteArgumentRemoteArgumentRemoteArgumentRemoteArgument
Attributes

Remarks

Use the RemoteArgument structure to pass arguments of types that are not determined until run time across process and application domain boundaries. The purpose of RemoteArgument is similar to that of the VARIANT type in COM.

You can use RemoteArgument to pass the following types and values as remote arguments:

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.

RemoteArgument provides constructors for each of the types that it supports. You can also use the CreateRemoteArgument methods to create RemoteArgument objects. The CreateRemoteArgument methods automatically call the appropriate RemoteArgument constructor for your argument type.

If you create a RemoteArgument using the default parameterless constructor, the RemoteArgumentKind property is set to the value RemoteArgumentKind.Missing and the TypeCode property is set to the value TypeCode.Empty.

Constructors

RemoteArgument(IContract) RemoteArgument(IContract) RemoteArgument(IContract) RemoteArgument(IContract)

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

RemoteArgument(Boolean, Boolean) RemoteArgument(Boolean, Boolean) RemoteArgument(Boolean, Boolean) 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) RemoteArgument(Byte, Boolean) RemoteArgument(Byte, Boolean) 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) RemoteArgument(Char, Boolean) RemoteArgument(Char, Boolean) 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) RemoteArgument(DateTime, Boolean) RemoteArgument(DateTime, Boolean) 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) RemoteArgument(DBNull, Boolean) RemoteArgument(DBNull, Boolean) 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) RemoteArgument(Decimal, Boolean) RemoteArgument(Decimal, Boolean) 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) RemoteArgument(Double, Boolean) RemoteArgument(Double, Boolean) 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) RemoteArgument(Array, Boolean) RemoteArgument(Array, Boolean) 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) RemoteArgument(Int16, Boolean) RemoteArgument(Int16, Boolean) 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) RemoteArgument(Int64, Boolean) RemoteArgument(Int64, Boolean) 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) RemoteArgument(Single, Boolean) RemoteArgument(Single, Boolean) 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) RemoteArgument(String, Boolean) RemoteArgument(String, Boolean) 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) RemoteArgument(UInt16, Boolean) RemoteArgument(UInt16, Boolean) 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) RemoteArgument(UInt32, Boolean) RemoteArgument(UInt32, Boolean) 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) RemoteArgument(UInt64, Boolean) RemoteArgument(UInt64, Boolean) 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) RemoteArgument(RemoteArgumentKind, TypeCode, Boolean) RemoteArgument(RemoteArgumentKind, TypeCode, Boolean) 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) RemoteArgument(Int32, Boolean) RemoteArgument(Int32, Boolean) 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) RemoteArgument(RemoteArgumentKind, TypeCode) RemoteArgument(RemoteArgumentKind, TypeCode) 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) RemoteArgument(SByte, Boolean) RemoteArgument(SByte, Boolean) RemoteArgument(SByte, Boolean)

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

RemoteArgument(UInt64) RemoteArgument(UInt64) RemoteArgument(UInt64) RemoteArgument(UInt64)

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

RemoteArgument(Array) RemoteArgument(Array) RemoteArgument(Array) RemoteArgument(Array)

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

RemoteArgument(Boolean) RemoteArgument(Boolean) RemoteArgument(Boolean) RemoteArgument(Boolean)

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

RemoteArgument(Byte) RemoteArgument(Byte) RemoteArgument(Byte) RemoteArgument(Byte)

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

RemoteArgument(Char) RemoteArgument(Char) RemoteArgument(Char) RemoteArgument(Char)

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

RemoteArgument(DateTime) RemoteArgument(DateTime) RemoteArgument(DateTime) RemoteArgument(DateTime)

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

RemoteArgument(DBNull) RemoteArgument(DBNull) RemoteArgument(DBNull) RemoteArgument(DBNull)

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

RemoteArgument(IContract, Boolean) RemoteArgument(IContract, Boolean) RemoteArgument(IContract, Boolean) RemoteArgument(IContract, Boolean)

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

RemoteArgument(Double) RemoteArgument(Double) RemoteArgument(Double) RemoteArgument(Double)

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

RemoteArgument(Decimal) RemoteArgument(Decimal) RemoteArgument(Decimal) RemoteArgument(Decimal)

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

RemoteArgument(Int32) RemoteArgument(Int32) RemoteArgument(Int32) RemoteArgument(Int32)

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

RemoteArgument(Int64) RemoteArgument(Int64) RemoteArgument(Int64) RemoteArgument(Int64)

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

RemoteArgument(SByte) RemoteArgument(SByte) RemoteArgument(SByte) RemoteArgument(SByte)

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

RemoteArgument(Single) RemoteArgument(Single) RemoteArgument(Single) RemoteArgument(Single)

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

RemoteArgument(String) RemoteArgument(String) RemoteArgument(String) RemoteArgument(String)

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

RemoteArgument(UInt16) RemoteArgument(UInt16) RemoteArgument(UInt16) RemoteArgument(UInt16)

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

RemoteArgument(UInt32) RemoteArgument(UInt32) RemoteArgument(UInt32) RemoteArgument(UInt32)

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

RemoteArgument(Int16) RemoteArgument(Int16) RemoteArgument(Int16) RemoteArgument(Int16)

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

Properties

ArrayValue ArrayValue ArrayValue ArrayValue

Gets or sets the Array that the RemoteArgument represents.

BooleanValue BooleanValue BooleanValue BooleanValue

Gets or sets the Boolean that the RemoteArgument represents.

ByteValue ByteValue ByteValue ByteValue

Gets or sets the Byte that the RemoteArgument represents.

CharValue CharValue CharValue CharValue

Gets or sets the Char that the RemoteArgument represents.

ContractValue ContractValue ContractValue ContractValue

Gets or sets the IContract that the RemoteArgument represents.

DateTimeValue DateTimeValue DateTimeValue DateTimeValue

Gets or sets the DateTime that the RemoteArgument represents.

DBNullValue DBNullValue DBNullValue DBNullValue

Gets or sets the DBNull that the RemoteArgument represents.

DecimalValue DecimalValue DecimalValue DecimalValue

Gets or sets the Decimal that the RemoteArgument represents.

DoubleValue DoubleValue DoubleValue DoubleValue

Gets or sets the Double that the RemoteArgument represents.

Int16Value Int16Value Int16Value Int16Value

Gets or sets the Int16 that the RemoteArgument represents.

Int32Value Int32Value Int32Value Int32Value

Gets or sets the Int32 that the RemoteArgument represents.

Int64Value Int64Value Int64Value Int64Value

Gets or sets the Int64 that the RemoteArgument represents.

IsByRef IsByRef IsByRef IsByRef

Gets or sets a value that indicates whether the RemoteArgument represents an argument that is passed by reference.

MissingValue MissingValue MissingValue MissingValue

Gets the Missing value.

RemoteArgumentKind RemoteArgumentKind RemoteArgumentKind RemoteArgumentKind

Gets a RemoteArgumentKind that indicates the kind of argument that the RemoteArgument represents.

SByteValue SByteValue SByteValue SByteValue

Gets or sets the SByte that the RemoteArgument represents.

SingleValue SingleValue SingleValue SingleValue

Gets or sets the Single that the RemoteArgument represents.

StringValue StringValue StringValue StringValue

Gets or sets the String that the RemoteArgument represents.

TypeCode TypeCode TypeCode TypeCode

Gets a TypeCode that indicates the base type of the argument that the RemoteArgument represents.

UInt16Value UInt16Value UInt16Value UInt16Value

Gets or sets the UInt16 that the RemoteArgument represents.

UInt32Value UInt32Value UInt32Value UInt32Value

Gets or sets the UInt32 that the RemoteArgument represents.

UInt64Value UInt64Value UInt64Value UInt64Value

Gets or sets the UInt64 that the RemoteArgument represents.

Methods

CreateRemoteArgument(Object) CreateRemoteArgument(Object) CreateRemoteArgument(Object) CreateRemoteArgument(Object)

Creates a RemoteArgument for an argument that is not passed by reference.

CreateRemoteArgument(Object, Boolean) CreateRemoteArgument(Object, Boolean) CreateRemoteArgument(Object, Boolean) CreateRemoteArgument(Object, Boolean)

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

CreateRemoteArgument(Object, Boolean, TypeCode) CreateRemoteArgument(Object, Boolean, TypeCode) CreateRemoteArgument(Object, Boolean, TypeCode) CreateRemoteArgument(Object, Boolean, TypeCode)

Creates a RemoteArgument for an argument that has the specified type code and that can be passed by reference.

Applies to