CopyExpression Method
Creates a copy of an existing Expression.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function CopyExpression ( _
expressionId As Integer _
) As ExpressionData
'Usage
Dim instance As MarketingWebService
Dim expressionId As Integer
Dim returnValue As ExpressionData
returnValue = instance.CopyExpression(expressionId)
[WebMethodAttribute]
public virtual ExpressionData CopyExpression(
int expressionId
)
[WebMethodAttribute]
public:
virtual ExpressionData^ CopyExpression(
int expressionId
)
public function CopyExpression(
expressionId : int
) : ExpressionData
Parameters
- expressionId
Type: System..::.Int32
The identifier of the source expression.
Return Value
Type: ExpressionData
The newly created ExpressionData instance.
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. |
Remarks
The new expression will not be saved at this time. To save the expression, call SaveExpression.
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.