ContentListSchema.FindColumn Method (PIA)
Use this method to find the position of a column specified by name.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Caching
…
Public Function FindColumn(sName As String) As Integer
[C#]
using Microsoft.CommerceServer.Interop.Caching;
…
public int FindColumn(stringsName);
Parameters
[Visual Basic .NET]
- sName
A String that contains the name of the column for which the position will be returned.
[C#]
- sName
A string that contains the name of the column for which the position will be returned.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns an Integer that contains the position of the new column.
[C#] This method returns the position of the specified column.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
Column positions are counted from zero (0), not one (1).
[Visual Basic .NET]
Example
'"Color" is the column name.
Dim iColumnNum as Integer
iColumnNum = myContentListSchema.FindColumn("Color")
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.