Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RemoteArgument Constructor (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.

Namespace:  System.AddIn.Contract
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)
public RemoteArgument(
	RemoteArgumentKind remoteArgKind,
	TypeCode typeCode
)

Parameters

remoteArgKind
Type: System.AddIn.Contract.RemoteArgumentKind

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

typeCode
Type: System.TypeCode

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

ExceptionCondition
ArgumentException

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

-or-

remoteArgKind is Missing and typeCode is not TypeCode.Empty.

-or-

remoteArgKind is Contract and typeCode is not TypeCode.Object.

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.