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


IWorkspaceDomains.DomainByName 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.DomainByName Property
ArcGIS Developer Help

IWorkspaceDomains.DomainByName Property

The domain with the given name from the workspace.

[Visual Basic .NET]
Public Function get_DomainByName ( _
    ByVal DomainName As String _
) As IDomain
[C#]
public IDomain get_DomainByName (
    string DomainName
);
[C++]
HRESULT get_DomainByName(
  BSTR DomainName,
  IDomain** Domain
);
[C++]
Parameters
DomainName [in]

DomainName is a parameter of type BSTR Domain [out, retval]
Domain is a parameter of type IDomain**

Product Availability

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

Description

DomainByName property returns an IDomain interface to the domain specified by the domain name parameter passed in.

Remarks

This property returns an IDomain for the domain in the workspace with the name provided. The domain name is a String.

See Also

IWorkspaceDomains Interface