ExpressionStore.GetExprName Method (PIA)
Use this method to translate the ID of an expression into its corresponding expression name.
Definition
Imports Microsoft.CommerceServer.Interop.Targeting … Public Function GetExprName( nExprID As Integer ) As String
public string GetExprName( int nExprID );
Parameters
- nExprID
- An Integer that contains a unique expression ID.
- 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.
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 |
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
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.
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.