Save Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Saves changes made to the current instance.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Overridable Sub Save
'Usage
Dim instance As MailingList
instance.Save()
public virtual void Save()
public:
virtual void Save()
public function Save()
Exceptions
Exception | Condition |
---|---|
EntityDoesNotExistException | The MailingList with the specified Id does not exist in the database in case of update. |
StringLengthValidationException | One or more string property values of the MailingList was set to a disallowed value. For more information, see the exception thrown. |
ArgumentNullException | One or more property values of the MailingList was set to nullNothingnullptra null reference (Nothing in Visual Basic) when not allowed. For more information, see the exception thrown. |
DuplicateEntityNameException | A MailingList already exists with the specified name. This is only allowed if the other MailingList record is marked as deleted. |
DuplicateEntityIdException | The MailingList Id specified already exists in the database. |
ExpressionValidationException | The list is of type ExpressionList and the expression that it refers to cannot be used with Expression Lists. |
Remarks
Saving a MailingList to an already existing MailingList with the same name is allowed if the existing MailingList record is marked as deleted.
If the list is an Expression List, a Profiles Resource must be associated with the site.
Expressions used for lists must have the following properties:
They must be valid marketing expressions.
They must only refer to the User Profile Definition.
They should not depend on other expressions.
You can only use And clauses.
You can only specify user profile properties marked as searchable in the Profile Schema Manager.
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.
See Also
Reference
Microsoft.CommerceServer.Marketing Namespace