3dak Client

ShopManagement.DeletePolicy Method (ShopPolicy)

Deletes a Shop Policy from the Database

[Visual Basic]
Public Sub DeletePolicy( _ 
   ByVal ShopPolicy As ShopPolicy _ 
)
[C#]
public void DeletePolicy(
   ShopPolicy ShopPolicy
);
[C++]
public: void DeletePolicy(
   ShopPolicy* ShopPolicy
);
[JScript]
public function DeletePolicy(
   ShopPolicy ShopPolicy
);

Parameters

Policy
Policy to delete

Remarks

Policies can only be deleted if there are no Mandators bound to it.

Exceptions

Exception TypeCondition
InvalidConstraintExceptionIndicates that there are still Mandators bound to this ShopPolicy
InvalidCredentialExceptionIndicates that no Authorization Context was provided

See Also

ShopManagement Class | ppm3dakClient.Shop Namespace | ShopManagement.DeletePolicy Overload List | ShopPolicy Mandators