public object GetCachedPropertyValue(AutomationProperty property, bool ignoreDefaultValue)
{
Utility.ValidateArgumentNonNull(property, "property");
try
{
object obj = this._obj.GetCachedPropertyValueEx(property.Id, (ignoreDefaultValue) ? 1 : 0);
return Utility.WrapObjectAsProperty(property, obj);
}
catch (System.Runtime.InteropServices.COMException e)
{
Exception newEx; if (Utility.ConvertException(e, out newEx)) { throw newEx; } else { throw; }
}
}