This document is archived and information here might be outdated.  Recommended version.


IWorkspaceDomains.CanDeleteDomain Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceDomains Interface > IWorkspaceDomains.CanDeleteDomain Property
ArcGIS Developer Help

IWorkspaceDomains.CanDeleteDomain Property

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,
  Boolean* deletable
);
[C++]
Parameters
DomainName [in]

DomainName is a parameter of type BSTR deletable [out, retval]
deletable is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IWorkspaceDomains Interface