This documentation is archived and is not being maintained.

Parameters.Add Method 

Creates a new query parameter. Returns a Parameter object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim Name As String
Dim iDataType As Object
Dim returnValue As Parameter
Dim parameters1 As Parameters
returnValue = parameters1.Add(Name, iDataType)

Parameter Add(
	[In] string Name, 
	[In, Optional] object iDataType
);
public Parameter Add(
	/*in*/System.String Name, 
	/*in*/System.Object iDataType
);
function Add(
	 Name : String, 
	 iDataType : Object
) : Parameter;

Parameters

Name

Required String. The name of the specified parameter. The parameter name should match the parameter clause in the SQL statement.

iDataType

Optional Object. The data type of the parameter. Can be any XlParameterDataType constant.

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

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: