103 writes to HResult
mscorlib (10)
system\diagnostics\contracts\contractsbcl.cs (2)
232HResult = System.Runtime.CompilerServices.ContractHelper.COR_E_CODECONTRACTFAILED; 238HResult = System.Runtime.CompilerServices.ContractHelper.COR_E_CODECONTRACTFAILED;
system\exception.cs (3)
46HResult = __HResults.COR_E_EXCEPTION; 98HResult = info.GetInt32("HResult"); 370HResult = hr;
system\security\policy\policyexception.cs (5)
24HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; 30HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; 36HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; 43HResult = hresult; 48HResult = hresult;
System (7)
compmod\system\componentmodel\LicenseException.cs (2)
43HResult = HResults.License; 52HResult = HResults.License;
net\System\Net\WebSockets\WebSocketException.cs (1)
199this.HResult = nativeError;
services\io\system\io\InternalBufferOverflowException.cs (3)
24HResult = HResults.InternalBufferOverflow; 33HResult =HResults.InternalBufferOverflow; 41HResult = HResults.InternalBufferOverflow;
sys\system\configuration\ConfigurationException.cs (1)
32HResult = HResults.Configuration;
System.Configuration (1)
System\Configuration\ConfigurationErrorsException.cs (1)
37HResult = HResults.Configuration;
System.Data (57)
fx\src\data\System\Data\CodeGen\StrongTypingException.cs (7)
28HResult = HResults.StrongTyping; 32HResult = HResults.StrongTyping; 39HResult = HResults.StrongTyping; 71HResult = HResults.StrongTyping; 75HResult = HResults.StrongTyping; 79HResult = HResults.StrongTyping; 87HResult = HResults.StrongTyping;
fx\src\data\System\Data\DataException.cs (32)
29HResult = HResults.Data; 34HResult = HResults.Data; 49HResult = HResults.DataConstraint; 52HResult = HResults.DataConstraint; 56HResult = HResults.DataConstraint; 71HResult = HResults.DataDeletedRowInaccessible; 80HResult = HResults.DataDeletedRowInaccessible; 84HResult = HResults.DataDeletedRowInaccessible; 94HResult = HResults.DataDuplicateName; 98HResult = HResults.DataDuplicateName; 102HResult = HResults.DataDuplicateName; 112HResult = HResults.DataInRowChangingEvent; 116HResult = HResults.DataInRowChangingEvent; 120HResult = HResults.DataInRowChangingEvent; 130HResult = HResults.DataInvalidConstraint; 134HResult = HResults.DataInvalidConstraint; 138HResult = HResults.DataInvalidConstraint; 148HResult = HResults.DataMissingPrimaryKey; 152HResult = HResults.DataMissingPrimaryKey; 156HResult = HResults.DataMissingPrimaryKey; 166HResult = HResults.DataNoNullAllowed; 170HResult = HResults.DataNoNullAllowed; 174HResult = HResults.DataNoNullAllowed; 184HResult = HResults.DataReadOnly; 188HResult = HResults.DataReadOnly; 192HResult = HResults.DataReadOnly; 202HResult = HResults.DataRowNotInTable; 206HResult = HResults.DataRowNotInTable; 210HResult = HResults.DataRowNotInTable; 220HResult = HResults.DataVersionNotFound; 224HResult = HResults.DataVersionNotFound; 228HResult = HResults.DataVersionNotFound;
fx\src\data\System\Data\DBConcurrencyException.cs (2)
26HResult = HResults.DBConcurrency; // MDAC 84941 30HResult = HResults.DBConcurrency; // MDAC 84941
fx\src\data\System\Data\Odbc\OdbcException.cs (2)
42HResult = HResults.OdbcException; 49HResult = HResults.OdbcException;
fx\src\data\System\Data\OleDb\OleDbException.cs (3)
26HResult = (int)errorCode; 31HResult = previous.ErrorCode; 38HResult = (int)errorCode;
fx\src\data\System\Data\OperationAbortedException.cs (1)
21HResult = HResults.OperationAborted;
fx\src\data\System\Data\Sql\invalidudtexception.cs (3)
20HResult = HResults.InvalidUdt; 24HResult = HResults.InvalidUdt; 28HResult = HResults.InvalidUdt;
fx\src\data\System\Data\SqlClient\SqlException.cs (2)
30HResult = HResults.SqlException; 38HResult = HResults.SqlException;
fx\src\data\System\Data\SQLTypes\SQLUtility.cs (5)
64HResult = HResults.SqlType; // MDAC 84941 94HResult = HResults.SqlNullValue; // MDAC 84941 124HResult = HResults.SqlTruncate; // MDAC 84941 156 HResult = HResults.SqlNullValue; // MDAC 84941 179 HResult = HResults.SqlNullValue; // MDAC 84941
System.Data.Entity (16)
System\Data\EntityCommandCompilationException.cs (4)
35HResult = HResults.CommandCompilation; 44HResult = HResults.CommandCompilation; 54HResult = HResults.CommandCompilation; 64HResult = HResults.CommandCompilation;
System\Data\EntityCommandExecutionException.cs (4)
35HResult = HResults.CommandExecution; 44HResult = HResults.CommandExecution; 54HResult = HResults.CommandExecution; 64HResult = HResults.CommandExecution;
System\Data\EntitySqlException.cs (5)
62HResult = HResults.InvalidQuery; 71HResult = HResults.InvalidQuery; 80HResult = HResults.InvalidQuery; 91HResult = HResults.InvalidQuery; 138HResult = HResults.InvalidQuery;
System\Data\MetadataException.cs (3)
29HResult = HResults.Metadata; 39HResult = HResults.Metadata; 50HResult = HResults.Metadata;
System.IdentityModel.Selectors (5)
infocard\client\System\IdentityModel\Selectors\InfoCardBaseException.cs (5)
20HResult = result; 26HResult = result; 32HResult = result; 39HResult = result; 45HResult = result;
System.Web (2)
HttpException.cs (2)
96HResult = hr; 141HResult = hr;
System.Xml (5)
System\Xml\Schema\XmlSchemaException.cs (1)
121HResult = HResults.XmlSchema;
System\Xml\XmlException.cs (2)
109HResult = HResults.Xml; 165HResult = HResults.Xml;
System\Xml\XPath\XPathException.cs (1)
88HResult = HResults.XmlXPath;
System\Xml\Xslt\XsltException.cs (1)
84HResult = HResults.XmlXslt;
19 references to HResult
mscorlib (12)
system\badimageformatexception.cs (2)
72(HResult == System.__HResults.COR_E_EXCEPTION)) 76_message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
system\exception.cs (2)
113if (_className == null || HResult==0) 585info.AddValue("HResult", HResult);
system\io\fileloadexception.cs (1)
76_message = FormatFileLoadExceptionMessage(_fileName, HResult);
system\io\filenotfoundexception.cs (2)
73(HResult == System.__HResults.COR_E_EXCEPTION)) 77_message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
system\reflection\assembly.cs (1)
2068return (uint)e.HResult == COR_E_LOADING_REFERENCE_ASSEMBLY;
system\resources\resourcemanager.cs (1)
1207if (e.HResult != __HResults.ERROR_MRM_MAP_NOT_FOUND)
system\runtime\interopservices\comexception.cs (1)
71s = _className + " (0x" + HResult.ToString("X8", CultureInfo.InvariantCulture) + ")";
system\runtime\interopservices\externalexception.cs (2)
53return HResult; 62s = _className + " (0x" + HResult.ToString("X8", CultureInfo.InvariantCulture) + ")";
PresentationFramework (2)
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
141catch (TargetInvocationException tex) when (tex.InnerException?.HResult == E_BOUNDS)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
260catch (COMException ex) when(ex.HResult == NativeMethods.E_UNEXPECTED)
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
419if (e.HResult == KEYSETDOESNOTEXIST)
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardBaseException.cs (1)
50get { return HResult; }
System.Management (1)
managementexception.cs (1)
665 errorCode = (ManagementStatus)this.HResult;
System.ServiceModel (1)
System\ServiceModel\Channels\PipeException.cs (1)
39get { return this.HResult; }
System.Windows.Forms (1)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
921(e.HResult != Win32.NTE_BAD_HASH))