SIL.FieldWorks.CacheLight.RealDataCache.get_IsValidObject C# (CSharp) Method

get_IsValidObject() public method

Member get_IsValidObject
public get_IsValidObject ( int hvo ) : bool
hvo int hvo
return bool
		public bool get_IsValidObject(int hvo)
		{
			CheckDisposed();

			if (hvo == 0)
				throw new ArgumentException("'hvo' cannot be 0.");

			// If it contains the key, it is valid.
			return m_intCache.ContainsKey(new HvoFlidKey(hvo, (int)CmObjectFields.kflidCmObject_Class));
		}