RemoteArgument Structure

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

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

[SerializableAttribute]
public struct RemoteArgument

The RemoteArgument type exposes the following members.

  NameDescription
Public methodRemoteArgument(Array)Initializes a new instance of the RemoteArgument class that represents an Array argument.
Public methodRemoteArgument(Boolean)Initializes a new instance of the RemoteArgument class that represents a Boolean argument.
Public methodRemoteArgument(Byte)Initializes a new instance of the RemoteArgument class that represents a Byte argument.
Public methodRemoteArgument(Char)Initializes a new instance of the RemoteArgument class that represents a Char argument.
Public methodRemoteArgument(DateTime)Initializes a new instance of the RemoteArgument class that represents a DateTime argument.
Public methodRemoteArgument(DBNull)Initializes a new instance of the RemoteArgument class that represents a DBNull argument.
Public methodRemoteArgument(Decimal)Initializes a new instance of the RemoteArgument class that represents a Decimal argument.
Public methodRemoteArgument(Double)Initializes a new instance of the RemoteArgument class that represents a Double argument.
Public methodRemoteArgument(IContract)Initializes a new instance of the RemoteArgument class that represents an IContract argument.
Public methodRemoteArgument(Int16)Initializes a new instance of the RemoteArgument class that represents an Int16 argument.
Public methodRemoteArgument(Int32)Initializes a new instance of the RemoteArgument class that represents an Int32 argument.
Public methodRemoteArgument(Int64)Initializes a new instance of the RemoteArgument class that represents an Int64 argument.
Public methodRemoteArgument(SByte)Initializes a new instance of the RemoteArgument class that represents an SByte argument.
Public methodRemoteArgument(Single)Initializes a new instance of the RemoteArgument class that represents a Single argument.
Public methodRemoteArgument(String)Initializes a new instance of the RemoteArgument class that represents a String argument.
Public methodRemoteArgument(UInt16)Initializes a new instance of the RemoteArgument class that represents a UInt16 argument.
Public methodRemoteArgument(UInt32)Initializes a new instance of the RemoteArgument class that represents a UInt32 argument.
Public methodRemoteArgument(UInt64)Initializes a new instance of the RemoteArgument class that represents a UInt64 argument.
Public methodRemoteArgument(Array, Boolean)Initializes a new instance of the RemoteArgument class that represents an Array argument that can be passed by reference.
Public methodRemoteArgument(Boolean, Boolean)Initializes a new instance of the RemoteArgument class that represents a Boolean argument that can be passed by reference.
Public methodRemoteArgument(Byte, Boolean)Initializes a new instance of the RemoteArgument class that represents a Byte argument that can be passed by reference.
Public methodRemoteArgument(Char, Boolean)Initializes a new instance of the RemoteArgument class that represents a Char argument that can be passed by reference.
Public methodRemoteArgument(DateTime, Boolean)Initializes a new instance of the RemoteArgument class that represents a DateTime argument that can be passed by reference.
Public methodRemoteArgument(DBNull, Boolean)Initializes a new instance of the RemoteArgument class that represents a DBNull argument that can be passed by reference.
Public methodRemoteArgument(Decimal, Boolean)Initializes a new instance of the RemoteArgument class that represents a Decimal argument that can be passed by reference.
Public methodRemoteArgument(Double, Boolean)Initializes a new instance of the RemoteArgument class that represents a Double argument that can be passed by reference.
Public methodRemoteArgument(IContract, Boolean)Initializes a new instance of the RemoteArgument class that represents an IContract argument that can be passed by reference.
Public methodRemoteArgument(Int16, Boolean)Initializes a new instance of the RemoteArgument class that represents an Int16 argument that can be passed by reference.
Public methodRemoteArgument(Int32, Boolean)Initializes a new instance of the RemoteArgument class that represents an Int32 argument that can be passed by reference.
Public methodRemoteArgument(Int64, Boolean)Initializes a new instance of the RemoteArgument class that represents an Int64 argument that can be passed by reference.
Public methodRemoteArgument(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 methodRemoteArgument(SByte, Boolean)Initializes a new instance of the RemoteArgument class that represents an SByte argument that can be passed by reference.
Public methodRemoteArgument(Single, Boolean)Initializes a new instance of the RemoteArgument class that represents a Single argument that can be passed by reference.
Public methodRemoteArgument(String, Boolean)Initializes a new instance of the RemoteArgument class that represents a String argument that can be passed by reference.
Public methodRemoteArgument(UInt16, Boolean)Initializes a new instance of the RemoteArgument class that represents a UInt16 argument that can be passed by reference.
Public methodRemoteArgument(UInt32, Boolean)Initializes a new instance of the RemoteArgument class that represents a UInt32 argument that can be passed by reference.
Public methodRemoteArgument(UInt64, Boolean)Initializes a new instance of the RemoteArgument class that represents a UInt64 argument that can be passed by reference.
Public methodRemoteArgument(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.
Top

  NameDescription
Public propertyArrayValueGets or sets the Array that the RemoteArgument represents.
Public propertyBooleanValueGets or sets the Boolean that the RemoteArgument represents.
Public propertyByteValueGets or sets the Byte that the RemoteArgument represents.
Public propertyCharValueGets or sets the Char that the RemoteArgument represents.
Public propertyContractValueGets or sets the IContract that the RemoteArgument represents.
Public propertyDateTimeValueGets or sets the DateTime that the RemoteArgument represents.
Public propertyDBNullValueGets or sets the DBNull that the RemoteArgument represents.
Public propertyDecimalValueGets or sets the Decimal that the RemoteArgument represents.
Public propertyDoubleValueGets or sets the Double that the RemoteArgument represents.
Public propertyInt16ValueGets or sets the Int16 that the RemoteArgument represents.
Public propertyInt32ValueGets or sets the Int32 that the RemoteArgument represents.
Public propertyInt64ValueGets or sets the Int64 that the RemoteArgument represents.
Public propertyIsByRefGets or sets a value that indicates whether the RemoteArgument represents an argument that is passed by reference.
Public propertyMissingValueGets the Missing value.
Public propertyRemoteArgumentKindGets a RemoteArgumentKind that indicates the kind of argument that the RemoteArgument represents.
Public propertySByteValueGets or sets the SByte that the RemoteArgument represents.
Public propertySingleValueGets or sets the Single that the RemoteArgument represents.
Public propertyStringValueGets or sets the String that the RemoteArgument represents.
Public propertyTypeCodeGets a TypeCode that indicates the base type of the argument that the RemoteArgument represents.
Public propertyUInt16ValueGets or sets the UInt16 that the RemoteArgument represents.
Public propertyUInt32ValueGets or sets the UInt32 that the RemoteArgument represents.
Public propertyUInt64ValueGets or sets the UInt64 that the RemoteArgument represents.
Top

  NameDescription
Public methodStatic memberCreateRemoteArgument(Object)Creates a RemoteArgument for an argument that is not passed by reference.
Public methodStatic memberCreateRemoteArgument(Object, Boolean)Creates a RemoteArgument for an argument that can be passed by reference.
Public methodStatic memberCreateRemoteArgument(Object, Boolean, TypeCode)Creates a RemoteArgument for an argument that has the specified type code and that can be passed by reference.
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft