Click or drag to resize

DataUpdateServiceUpdateAddressMailingBlock Method

Initializes a new instance of the DataUpdateService class.
Updates the mailing block (street address) for an address.

Namespace:  (Default Namespace)
Assembly:  SeniorSystemsWS (in SeniorSystemsWS.dll) Version: 937.0.0.0 (937.0.0.33)
Syntax
public ResultAddress UpdateAddressMailingBlock(
	int addressNo,
	AddressMailingBlock addr,
	string authKey
)

Parameters

addressNo
Type: SystemInt32
An address number.
addr
Type: SeniorSystemsWS.EntityAddressMailingBlock
The new mailing address.
authKey
Type: SystemString
Authentication Key obtained from the loginExt method in UserManagementService for a current administrator connection.

Return Value

Type: ResultAddress
A ResultAddress object.
Exceptions
ExceptionCondition
ApplicationExceptionInvalid authorization key
ApplicationExceptionInsufficient privileges
Remarks
The addressNo parameter is an existing address number or a pending (unapproved) address number.

Success or failure is obtained by checking ResultAddress.Status. Additional error information is contained in ResultAddress.ErrorType.

If the address number provided in addressNo is for an address record, a new pending address record will be created. If the address number provided matches an exising pending record, the pending record will be updated.

The properties in addr will overwrite the existing values.

The authorization key provided must be linked to an administrator role.

Examples
ResultAddress r = UpdateAddressMailingBlock( addressNo, addr, authKey );
if (r.Status == ResultStatusOKError.StatusError)
    return;
See Also