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


ISubtypes.Domain Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISubtypes Interface > ISubtypes.Domain Property
ArcGIS Developer Help

ISubtypes.Domain Property

The domain given the subtype and field.

[Visual Basic .NET]
Public Function get_Domain ( _
    ByVal SubtypeCode As Integer, _
    ByVal FieldName As String _
) As IDomain
[Visual Basic .NET]
Public Sub set_Domain ( _
    ByVal SubtypeCode As Integer, _
    ByVal FieldName As String, _
    ByVal Domain As IDomain _
)
[C#]
public IDomain get_Domain (
    int SubtypeCode,
    string FieldName
);
[C#]
public void set_Domain (
    int SubtypeCode,
    string FieldName,
    IDomain Domain
);
[C++]
HRESULT get_Domain(
  long SubtypeCode,
  BSTR FieldName,
  IDomain** Domain
);
[C++]
HRESULT putref_Domain(
  long SubtypeCode,
  BSTR FieldName,
  IDomain* Domain
);
[C++]
Parameters
SubtypeCode [in]

SubtypeCode is a parameter of type long FieldName [in]
FieldName is a parameter of type BSTR Domain [out, retval]
Domain is a parameter of type IDomain** SubtypeCode [in]
SubtypeCode is a parameter of type long FieldName [in]
FieldName is a parameter of type BSTR Domain [in]
Domain is a parameter of type IDomain*

Product Availability

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

Description

The Domain property returns or sets the domain given the subtype code and the fieldname of the subtype.

Functional License Check

If your application/site is not appropriately licensed, Domain can return an error of FDO_E_NO_SCHEMA_LICENSE.

Remarks

This property returns or sets an IDomain object associated with a particular subtype code and field. The subtype code is required as a Long and field name as a String.

See Also

ISubtypes Interface