Share via


ODBCConnection.CommandType Property

Returns or sets one of the XlCmdType constants. Read/write XlCmdType.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property CommandType As XlCmdType
    Get
    Set
'Usage
Dim instance As ODBCConnection
Dim value As XlCmdType

value = instance.CommandType

instance.CommandType = value
XlCmdType CommandType { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlCmdType
XlCmdType

Remarks

The constant that is returned or set describes the value of the CommandText property. The default value is xlCmdSql.

See Also

Reference

ODBCConnection Interface

ODBCConnection Members

Microsoft.Office.Interop.Excel Namespace