This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceDomains Interface > IWorkspaceDomains.CanDeleteDomain Property (ArcObjects .NET 10.4 SDK) |
Indicates if the user can delete the domain.
[Visual Basic .NET] Public Function get_CanDeleteDomain ( _ ByVal DomainName As String _ ) As Boolean
[C#] public bool get_CanDeleteDomain ( string DomainName );
[C++]
HRESULT get_CanDeleteDomain(
BSTR DomainName,
VARIANT_BOOL* deletable
);
[C++]
Parameters DomainName [in] DomainName is a parameter of type BSTR deletable [out, retval] deletable is a parameter of type VARIANT_BOOL
CanDeleteDomain property returns TRUE if this domain can be deleted or FALSE if it cannot.
CanDeleteDomain, is used in conjunction with the DeleteDomain method. If the user attempts to delete a domain from a workspace rather than handling errors that may result during DeleteDomain (that is, the domain is in use), the user may first test whether the domain can be deleted via this property.