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
[<System.Serializable>]
type RemoteArgument = struct
Public Structure RemoteArgument
Inheritance
RemoteArgument
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(Array)

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

RemoteArgument(Array, Boolean)

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

RemoteArgument(Boolean)

Initializes a new instance of the RemoteArgument class that represents a Boolean 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)

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

RemoteArgument(Byte, Boolean)

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

RemoteArgument(Char)

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

RemoteArgument(Char, Boolean)

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

RemoteArgument(DateTime)

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

RemoteArgument(DateTime, Boolean)

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

RemoteArgument(DBNull)

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

RemoteArgument(DBNull, Boolean)

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

RemoteArgument(Decimal)

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

RemoteArgument(Decimal, Boolean)

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

RemoteArgument(Double)

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

RemoteArgument(Double, Boolean)

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

RemoteArgument(IContract)

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

RemoteArgument(IContract, Boolean)

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

RemoteArgument(Int16)

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

RemoteArgument(Int16, Boolean)

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

RemoteArgument(Int32)

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

RemoteArgument(Int32, Boolean)

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

RemoteArgument(Int64)

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

RemoteArgument(Int64, Boolean)

Initializes a new instance of the RemoteArgument class that represents an Int64 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(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(SByte)

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

RemoteArgument(SByte, Boolean)

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

RemoteArgument(Single)

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

RemoteArgument(Single, Boolean)

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

RemoteArgument(String)

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

RemoteArgument(String, Boolean)

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

RemoteArgument(UInt16)

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

RemoteArgument(UInt16, Boolean)

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

RemoteArgument(UInt32)

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

RemoteArgument(UInt32, Boolean)

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

RemoteArgument(UInt64)

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

RemoteArgument(UInt64, Boolean)

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

Properties

ArrayValue

Gets or sets the Array that the RemoteArgument represents.

BooleanValue

Gets or sets the Boolean that the RemoteArgument represents.

ByteValue

Gets or sets the Byte that the RemoteArgument represents.

CharValue

Gets or sets the Char that the RemoteArgument represents.

ContractValue

Gets or sets the IContract that the RemoteArgument represents.

DateTimeValue

Gets or sets the DateTime that the RemoteArgument represents.

DBNullValue

Gets or sets the DBNull that the RemoteArgument represents.

DecimalValue

Gets or sets the Decimal that the RemoteArgument represents.

DoubleValue

Gets or sets the Double that the RemoteArgument represents.

Int16Value

Gets or sets the Int16 that the RemoteArgument represents.

Int32Value

Gets or sets the Int32 that the RemoteArgument represents.

Int64Value

Gets or sets the Int64 that the RemoteArgument represents.

IsByRef

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

MissingValue

Gets the Missing value.

RemoteArgumentKind

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

SByteValue

Gets or sets the SByte that the RemoteArgument represents.

SingleValue

Gets or sets the Single that the RemoteArgument represents.

StringValue

Gets or sets the String that the RemoteArgument represents.

TypeCode

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

UInt16Value

Gets or sets the UInt16 that the RemoteArgument represents.

UInt32Value

Gets or sets the UInt32 that the RemoteArgument represents.

UInt64Value

Gets or sets the UInt64 that the RemoteArgument represents.

Methods

CreateRemoteArgument(Object)

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

CreateRemoteArgument(Object, Boolean)

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

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