This documentation is archived and is not being maintained.

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)

public struct RemoteArgument

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5