ArcObjects Library Reference (GeoDatabase)  

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

.NET Related Topics

Assigning domains to fields | Creating and modifying domains | Creating subtypes |