SIL.FieldWorks.Common.Framework.DetailControls.SliceFactory.GetCustomFieldFlid C# (CSharp) Méthode

GetCustomFieldFlid() static private méthode

static private GetCustomFieldFlid ( XmlNode caller, IFwMetaDataCache mdc, ICmObject obj ) : int
caller System.Xml.XmlNode
mdc IFwMetaDataCache
obj ICmObject
Résultat int
		static internal int GetCustomFieldFlid(XmlNode caller, IFwMetaDataCache mdc, ICmObject obj)
		{
			string fieldName = XmlUtils.GetManditoryAttributeValue(caller, "param");
			// It would be nice to avoid all the possible throws for invalid fields, but hard
			// to achieve in a static method.
			try
			{
				int flid = mdc.GetFieldId2(obj.ClassID, fieldName, true);
				return flid;
			}
			catch
			{
				return 0;
			}
		}
	}