ContentListSchema.ColumnType Property (PIA)
The ColumnType property is a read/write value from the ColumnTypeEnum enumeration, specifying the data type of the specified column.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Caching
…
Public Property ColumnType(vColumn As Object) As ColumnTypeEnum
[C#]
Get method:
using Microsoft.CommerceServer.Interop.Caching;
…
public ColumnTypeEnum get_ColumnType(object vColumn);
Put method:
using Microsoft.CommerceServer.Interop.Caching;
…
public void set_ColumnType(object vColumn,
ColumnTypeEnumColumnType);
Parameters
[Visual Basic .NET]
- vColumn
An Object that contains either the column name or the column position in order to identify the column in question. Column positions are counted from zero (0), not one (1).
[C#]
- vColumn
An object that contains either the column name or the column position in order to identify the column in question. Column positions are counted from zero (0), not one (1). - ColumnType
When putting the property, a value from the ColumnTypeEnum enumeration. See the Remarks section for more details.
Return Values
This property returns a value from the ColumnTypeEnum enumeration.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
[C#]get_ColumnType and set_ColumnType do not show up in IntelliSense.
The following table shows the values of the ColumnTypeEnum enumeration, their associated names, and describes their use.
Name | Value | Description |
---|---|---|
CLCOL_I2 | 2 | A 16-bit integer. This value corresponds to the VARTYPE value VT_I2. |
CLCOL_I4 | 3 | A 32-bit integer. This value corresponds to the VARTYPE value VT_I4. |
CLCOL_R4 | 4 | A single precision floating point number. This value corresponds to the VARTYPE value VT_R4. |
CLCOL_R8 | 5 | A double precision floating point number. This value corresponds to the VARTYPE value VT_R8. |
CLCOL_CY | 6 | A 64-bit integer used to store a currency value. This value corresponds to the VARTYPE value VT_CY. Monetary values stored using this type are scaled by 10,000 (4 decimal places). For example, the value 86900 would correspond to a currency value of $8.69 in the US. This is also the same as the money datatype used by SQL7. |
CLCOL_DATE | 7 | A double precision floating point number used to store a date/time value. This value corresponds to the VARTYPE value VT_DATE. |
CLCOL_DISPATCH | 9 | A reference to an object that supports scripting/automation (inherits from IDispatch). This value corresponds to the VARTYPE value VT_DISPATCH. |
CLCOL_BOOL | 11 | A boolean. This value corresponds to the VARTYPE value VT_BOOL. Do not confuse this with the C++ type BOOL, which is 4 bytes. |
CLCOL_UNKNOWN | 13 | A pointer to an IUnknown-based interface that, presumably, does not support scripting/automation (inherits from IUnknown). This value corresponds to the VARTYPE value VT_UNKNOWN. |
CLCOL_STRING | 14 | A pointer to a string in the private heap maintained by every ContentListFactory object. There is no corresponding VARTYPE value. |
CLCOL_VARIANTARRAY | 15 | A pointer to a SAFEARRAY. The corresponding variant type is VT_ARRAY or VT_VARIANT. |
Note
- With the exception of CLCOL_STRING and CLCOL_VARIANTARRAY, these types are identical to the corresponding VARTYPE and share the same constant value. Indeed, they may be used as a VARTYPE.
Requirements
Namespace: Microsoft.CommerceServer.Interop.Caching
Platforms: Windows 2000, Windows Server 2003
Assembly: cachecomplib (in cachecomplib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.