static private GetFieldEnumeration ( IWorkspace theWS, String which, |
||
theWS | IWorkspace | |
which | String | |
theAMap | ||
return | ICodedValueDomain |
internal static ICodedValueDomain GetFieldEnumeration(IWorkspace theWS, String which, AttributeMappingData theAMap)
{
IDomain theD;
ICodedValueDomain theCVD = null;
IWorkspaceDomains theDWS = (IWorkspaceDomains)theWS;
if (which == "Source")
{
theD = theDWS.get_DomainByName(theAMap.srcEnum);
}
else
{
theD = theDWS.get_DomainByName(theAMap.destEnum);
}
if (theD != null) { theCVD = (ICodedValueDomain)theD; }
return theCVD;
}