SavePageGroup Method
Insert a new PageGroup (if the identifier is zero), or updates an existing PageGroup (if the identifier is not zero).
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function SavePageGroup ( _
pageGroup As PageGroupData _
) As PageGroupData
'Usage
Dim instance As MarketingWebService
Dim pageGroup As PageGroupData
Dim returnValue As PageGroupData
returnValue = instance.SavePageGroup(pageGroup)
[WebMethodAttribute]
public virtual PageGroupData SavePageGroup(
PageGroupData pageGroup
)
[WebMethodAttribute]
public:
virtual PageGroupData^ SavePageGroup(
PageGroupData^ pageGroup
)
public function SavePageGroup(
pageGroup : PageGroupData
) : PageGroupData
Parameters
- pageGroup
Type: PageGroupData
The Page Group data to be saved (set to zero for an insert).
Return Value
Type: PageGroupData
A PageGroupData with the specified PageGroup.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | An input argument or one of the required properties is nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | pageGroup is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
EntityStateException | The page group has been deleted (update). |
EntityDoesNotExistException | The pageGroup being updated does not exist. |
StringLengthValidationException | One if the property values is too long or too short. |
DuplicateEntityNameException | An entity with this name already exists. |
DuplicateEntityIdException | An entity with this pageGroup already exists. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Saves the specified PageGroupData object to the database. Inserts a new PageGroup (if the identifier is zero), or updates an existing PageGroup (if the identifier is not zero).
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.