Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves an existing Expression, as identified by the expression's unique identifier.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetExpression ( _
expressionId As Integer _
) As Expression
'Usage
Dim instance As ExpressionManager
Dim expressionId As Integer
Dim returnValue As Expression
returnValue = instance.GetExpression(expressionId)
public Expression GetExpression(
int expressionId
)
public:
Expression^ GetExpression(
int expressionId
)
public function GetExpression(
expressionId : int
) : Expression
Parameters
- expressionId
Type: System..::.Int32
The Id of the Expression to retrieve. Must not be less than 1.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.Expression
The Expression associated with the expressionId, retrieved from the database.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | expressionId is not a valid Id value. |
EntityDoesNotExistException | No Expression exists with the expressionId. |
InvalidOperationException | An attempt was made to directly access a local expression. A local expression only exists in the context of a campaign item and therefore must be saved and retrieved with the campaign item. |
NotAuthorizedException | The user is not authorized to perform the requested operation |
Remarks
Use this method to retrieve a specific Expression object from the database.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.