다음을 통해 공유


GetExpression Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Retrieves an existing Expression, as identified by the expression's unique identifier.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetExpression ( _
    expressionId As Integer _
) As ExpressionData
'Usage
Dim instance As MarketingWebService
Dim expressionId As Integer
Dim returnValue As ExpressionData

returnValue = instance.GetExpression(expressionId)
[WebMethodAttribute]
public virtual ExpressionData GetExpression(
    int expressionId
)
[WebMethodAttribute]
public:
virtual ExpressionData^ GetExpression(
    int expressionId
)
public function GetExpression(
    expressionId : int
) : ExpressionData

Parameters

Return Value

Type: ExpressionData
The ExpressionData associated with the expressionId.

Exceptions

Exception Condition
ArgumentOutOfRangeException

expressionId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this expressionId.

InvalidCatalogOperationException

An attempt was made to directly access a local expression. A local expression only exists in the context of a campaign item and must be saved and retrieved with the campaign item.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Use this method to retrieve a specific ExpressionData containing the global Expression object from the marketing database.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace