You are here: Ektron Namespace > .NET Assemblies > eCommerce > Classes > CountryApi Class > CountryApi Methods > CanDelete
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
CountryApi.CanDelete Method

Checks to see if a country can be deleted. A country cannot be deleted if a region or address uses the country.

C#
public bool CanDelete(int countryId, out ValidationResults result);
Visual Basic
Public Function CanDelete(countryId As Integer, result As out ValidationResults) As bool
Parameters 
Description 
countryId 
The ID of the country to delete. 
result 
ValidationResult returned containing messages if country cannot be deleted. 

Returns true if country can safely be deleted.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!