ExpressionStore.GetExprName Method (PIA)
Use this method to translate the ID of an expression into its corresponding expression name.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Function GetExprName(nExprID As Integer) As String
[C#]
public string GetExprName(intnExprID);
Parameters
[Visual Basic .NET]
- nExprID
An Integer that contains a unique expression ID.
[C#]
- nExprID
An int that contains a unique expression ID.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns a String that contains the name of the expression. An empty String is returned if the expression ID is an Integer but does not represent an existing expression in the expression store.
[C#] This method returns a string that contains the name of the expression. On failure, the expression name is set to null.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
The following table shows the custom COM errors that a COMException can wrap.
Value | Description |
---|---|
&H8110001F | Invalid connection |
&H8110000A | Invalid expression ID specified |
&H8110000D | No connection string specified |
[C#]
The following table shows the custom COM errors that COMException can wrap.
Value | Description |
---|---|
0x8110001F | Invalid connection |
0x8110000A | Invalid expression ID specified |
0x8110000D | No connection string specified |
Remarks
[Visual Basic .NET]
Use the GetExprID method to translate the name of an expression into its corresponding expression ID.
Call the Connect method before calling the GetExprName method.
[C#]
Use the GetExprID method to translate the name of an expression into its corresponding expression ID.
Call the Connect method before calling the GetExprName method.
Requirements
Namespace: Microsoft.CommerceServer.Interop.Targeting
Platforms: Windows 2000, Windows Server 2003
Assembly: exprarchlib (in exprarchlib)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.