Export (0) Print
Expand All

ExpressionStore.GetExprName Method (PIA)

Commerce Server 2002

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(
 int nExprID
);

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.

ValueDescription
&H8110001FInvalid connection
&H8110000AInvalid expression ID specified
&H8110000DNo connection string specified
[C#]

The following table shows the custom COM errors that COMException can wrap.

ValueDescription
0x8110001FInvalid connection
0x8110000AInvalid expression ID specified
0x8110000DNo 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

ExpressionStore Class

ExpressionStore.Connect

ExpressionStore.GetExprID

Copyright © 2005 Microsoft Corporation.
All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft