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