Save Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Saves changes made to the current DisplayTemplate object.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Save
'Usage
Dim instance As DisplayTemplate
instance.Save()
public void Save()
public:
void Save()
public function Save()
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The xml serializable DisplayTemplateData received at the web service was nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | The Id of the DisplayTemplate is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested updates. |
DuplicateEntityNameException | A DisplayTemplate with the specified Name already exists with in the context of the Campaign specified by Name. |
StringLengthValidationException | A string property is too long or cannot be set to empty string. See individual properties for details. |
PropertyNullValidationException | A string property cannot be set to nullNothingnullptra null reference (Nothing in Visual Basic). See individual properties for details. |
MinimumValueValidationException | One or more of the numeric property values of the current discount object was set to a value less than the minimum allowed. |
Remarks
This inserts or updates this object in the database. Save can be used to add a new DisplayTemplate to the database or update an existing DisplayTemplate in 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.