System.Diagnostics.Contracts.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>System.Diagnostics.Contracts</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.Diagnostics.Contracts.Contract">
  8. <summary>Contains static methods for representing program contracts such as preconditions, postconditions, and object invariants.</summary>
  9. </member>
  10. <member name="M:System.Diagnostics.Contracts.Contract.Assert(System.Boolean)">
  11. <summary>Checks for a condition; if the condition is false, follows the escalation policy set for the analyzer.</summary>
  12. <param name="condition">The conditional expression to test.</param>
  13. </member>
  14. <member name="M:System.Diagnostics.Contracts.Contract.Assert(System.Boolean,System.String)">
  15. <summary>Checks for a condition; if the condition is false, follows the escalation policy set by the analyzer and displays the specified message.</summary>
  16. <param name="condition">The conditional expression to test.</param>
  17. <param name="userMessage">A message to display if the condition is not met.</param>
  18. </member>
  19. <member name="M:System.Diagnostics.Contracts.Contract.Assume(System.Boolean)">
  20. <summary>Instructs code analysis tools to assume that the specified condition is true, even if it cannot be statically proven to always be true.</summary>
  21. <param name="condition">The conditional expression to assume true.</param>
  22. </member>
  23. <member name="M:System.Diagnostics.Contracts.Contract.Assume(System.Boolean,System.String)">
  24. <summary>Instructs code analysis tools to assume that a condition is true, even if it cannot be statically proven to always be true, and displays a message if the assumption fails.</summary>
  25. <param name="condition">The conditional expression to assume true.</param>
  26. <param name="userMessage">The message to post if the assumption fails.</param>
  27. </member>
  28. <member name="E:System.Diagnostics.Contracts.Contract.ContractFailed">
  29. <summary>Occurs when a contract fails.</summary>
  30. </member>
  31. <member name="M:System.Diagnostics.Contracts.Contract.EndContractBlock">
  32. <summary>Marks the end of the contract section when a method's contracts contain only preconditions in the if-then-throw form.</summary>
  33. </member>
  34. <member name="M:System.Diagnostics.Contracts.Contract.Ensures(System.Boolean)">
  35. <summary>Specifies a postcondition contract for the enclosing method or property.</summary>
  36. <param name="condition">The conditional expression to test. The expression may include <see cref="M:System.Diagnostics.Contracts.Contract.OldValue``1(``0)" />, <see cref="M:System.Diagnostics.Contracts.Contract.ValueAtReturn``1(``0@)" />, and <see cref="M:System.Diagnostics.Contracts.Contract.Result``1" /> values. </param>
  37. </member>
  38. <member name="M:System.Diagnostics.Contracts.Contract.Ensures(System.Boolean,System.String)">
  39. <summary>Specifies a postcondition contract for a provided exit condition and a message to display if the condition is false.</summary>
  40. <param name="condition">The conditional expression to test. The expression may include <see cref="M:System.Diagnostics.Contracts.Contract.OldValue``1(``0)" /> and <see cref="M:System.Diagnostics.Contracts.Contract.Result``1" /> values. </param>
  41. <param name="userMessage">The message to display if the expression is not true.</param>
  42. </member>
  43. <member name="M:System.Diagnostics.Contracts.Contract.EnsuresOnThrow``1(System.Boolean)">
  44. <summary>Specifies a postcondition contract for the enclosing method or property, based on the provided exception and condition.</summary>
  45. <param name="condition">The conditional expression to test.</param>
  46. <typeparam name="TException">The type of exception that invokes the postcondition check.</typeparam>
  47. </member>
  48. <member name="M:System.Diagnostics.Contracts.Contract.EnsuresOnThrow``1(System.Boolean,System.String)">
  49. <summary>Specifies a postcondition contract and a message to display if the condition is false for the enclosing method or property, based on the provided exception and condition.</summary>
  50. <param name="condition">The conditional expression to test.</param>
  51. <param name="userMessage">The message to display if the expression is false.</param>
  52. <typeparam name="TException">The type of exception that invokes the postcondition check.</typeparam>
  53. </member>
  54. <member name="M:System.Diagnostics.Contracts.Contract.Exists``1(System.Collections.Generic.IEnumerable{``0},System.Predicate{``0})">
  55. <summary>Determines whether an element within a collection of elements exists within a function.</summary>
  56. <returns>true if and only if <paramref name="predicate" /> returns true for any element of type <paramref name="T" /> in <paramref name="collection" />.</returns>
  57. <param name="collection">The collection from which elements of type <paramref name="T" /> will be drawn to pass to <paramref name="predicate" />.</param>
  58. <param name="predicate">The function to evaluate for an element in <paramref name="collection" />.</param>
  59. <typeparam name="T">The type that is contained in <paramref name="collection" />.</typeparam>
  60. <exception cref="T:System.ArgumentNullException">
  61. <paramref name="collection" /> or <paramref name="predicate" /> is null.</exception>
  62. </member>
  63. <member name="M:System.Diagnostics.Contracts.Contract.Exists(System.Int32,System.Int32,System.Predicate{System.Int32})">
  64. <summary>Determines whether a specified test is true for any integer within a range of integers.</summary>
  65. <returns>true if <paramref name="predicate" /> returns true for any integer starting from <paramref name="fromInclusive" /> to <paramref name="toExclusive" /> - 1.</returns>
  66. <param name="fromInclusive">The first integer to pass to <paramref name="predicate" />.</param>
  67. <param name="toExclusive">One more than the last integer to pass to <paramref name="predicate" />.</param>
  68. <param name="predicate">The function to evaluate for any value of the integer in the specified range.</param>
  69. <exception cref="T:System.ArgumentNullException">
  70. <paramref name="predicate" /> is null.</exception>
  71. <exception cref="T:System.ArgumentException">
  72. <paramref name="toExclusive " />is less than <paramref name="fromInclusive" />.</exception>
  73. </member>
  74. <member name="M:System.Diagnostics.Contracts.Contract.ForAll``1(System.Collections.Generic.IEnumerable{``0},System.Predicate{``0})">
  75. <summary>Determines whether all the elements in a collection exist within a function.</summary>
  76. <returns>true if and only if <paramref name="predicate" /> returns true for all elements of type <paramref name="T" /> in <paramref name="collection" />.</returns>
  77. <param name="collection">The collection from which elements of type <paramref name="T" /> will be drawn to pass to <paramref name="predicate" />.</param>
  78. <param name="predicate">The function to evaluate for the existence of all the elements in <paramref name="collection" />.</param>
  79. <typeparam name="T">The type that is contained in <paramref name="collection" />.</typeparam>
  80. <exception cref="T:System.ArgumentNullException">
  81. <paramref name="collection" /> or <paramref name="predicate" /> is null.</exception>
  82. </member>
  83. <member name="M:System.Diagnostics.Contracts.Contract.ForAll(System.Int32,System.Int32,System.Predicate{System.Int32})">
  84. <summary>Determines whether a particular condition is valid for all integers in a specified range.</summary>
  85. <returns>true if <paramref name="predicate" /> returns true for all integers starting from <paramref name="fromInclusive" /> to <paramref name="toExclusive" /> - 1.</returns>
  86. <param name="fromInclusive">The first integer to pass to <paramref name="predicate" />.</param>
  87. <param name="toExclusive">One more than the last integer to pass to <paramref name="predicate" />.</param>
  88. <param name="predicate">The function to evaluate for the existence of the integers in the specified range.</param>
  89. <exception cref="T:System.ArgumentNullException">
  90. <paramref name="predicate" /> is null.</exception>
  91. <exception cref="T:System.ArgumentException">
  92. <paramref name="toExclusive " />is less than <paramref name="fromInclusive" />.</exception>
  93. </member>
  94. <member name="M:System.Diagnostics.Contracts.Contract.Invariant(System.Boolean)">
  95. <summary>Specifies an invariant contract for the enclosing method or property. </summary>
  96. <param name="condition">The conditional expression to test.</param>
  97. </member>
  98. <member name="M:System.Diagnostics.Contracts.Contract.Invariant(System.Boolean,System.String)">
  99. <summary>Specifies an invariant contract for the enclosing method or property, and displays a message if the condition for the contract fails.</summary>
  100. <param name="condition">The conditional expression to test.</param>
  101. <param name="userMessage">The message to display if the condition is false.</param>
  102. </member>
  103. <member name="M:System.Diagnostics.Contracts.Contract.OldValue``1(``0)">
  104. <summary>Represents values as they were at the start of a method or property.</summary>
  105. <returns>The value of the parameter or field at the start of a method or property.</returns>
  106. <param name="value">The value to represent (field or parameter).</param>
  107. <typeparam name="T">The type of value.</typeparam>
  108. </member>
  109. <member name="M:System.Diagnostics.Contracts.Contract.Requires``1(System.Boolean)">
  110. <summary>Specifies a precondition contract for the enclosing method or property, and throws an exception if the condition for the contract fails.</summary>
  111. <param name="condition">The conditional expression to test.</param>
  112. <typeparam name="TException">The exception to throw if the condition is false.</typeparam>
  113. </member>
  114. <member name="M:System.Diagnostics.Contracts.Contract.Requires(System.Boolean)">
  115. <summary>Specifies a precondition contract for the enclosing method or property.</summary>
  116. <param name="condition">The conditional expression to test.</param>
  117. </member>
  118. <member name="M:System.Diagnostics.Contracts.Contract.Requires(System.Boolean,System.String)">
  119. <summary>Specifies a precondition contract for the enclosing method or property, and displays a message if the condition for the contract fails.</summary>
  120. <param name="condition">The conditional expression to test.</param>
  121. <param name="userMessage">The message to display if the condition is false.</param>
  122. </member>
  123. <member name="M:System.Diagnostics.Contracts.Contract.Requires``1(System.Boolean,System.String)">
  124. <summary>Specifies a precondition contract for the enclosing method or property, and throws an exception with the provided message if the condition for the contract fails.</summary>
  125. <param name="condition">The conditional expression to test.</param>
  126. <param name="userMessage">The message to display if the condition is false.</param>
  127. <typeparam name="TException">The exception to throw if the condition is false.</typeparam>
  128. </member>
  129. <member name="M:System.Diagnostics.Contracts.Contract.Result``1">
  130. <summary>Represents the return value of a method or property.</summary>
  131. <returns>Return value of the enclosing method or property.</returns>
  132. <typeparam name="T">Type of return value of the enclosing method or property.</typeparam>
  133. </member>
  134. <member name="M:System.Diagnostics.Contracts.Contract.ValueAtReturn``1(``0@)">
  135. <summary>Represents the final (output) value of an out parameter when returning from a method.</summary>
  136. <returns>The output value of the out parameter.</returns>
  137. <param name="value">The out parameter.</param>
  138. <typeparam name="T">The type of the out parameter.</typeparam>
  139. </member>
  140. <member name="T:System.Diagnostics.Contracts.ContractAbbreviatorAttribute">
  141. <summary>Defines abbreviations that you can use in place of the full contract syntax.</summary>
  142. </member>
  143. <member name="M:System.Diagnostics.Contracts.ContractAbbreviatorAttribute.#ctor">
  144. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractAbbreviatorAttribute" /> class.</summary>
  145. </member>
  146. <member name="T:System.Diagnostics.Contracts.ContractArgumentValidatorAttribute">
  147. <summary>Enables the factoring of legacy if-then-throw code into separate methods for reuse, and provides full control over thrown exceptions and arguments.</summary>
  148. </member>
  149. <member name="M:System.Diagnostics.Contracts.ContractArgumentValidatorAttribute.#ctor">
  150. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractArgumentValidatorAttribute" /> class.</summary>
  151. </member>
  152. <member name="T:System.Diagnostics.Contracts.ContractClassAttribute">
  153. <summary>Specifies that a separate type contains the code contracts for this type.</summary>
  154. </member>
  155. <member name="M:System.Diagnostics.Contracts.ContractClassAttribute.#ctor(System.Type)">
  156. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractClassAttribute" /> class. </summary>
  157. <param name="typeContainingContracts">The type that contains the code contracts for this type.</param>
  158. </member>
  159. <member name="P:System.Diagnostics.Contracts.ContractClassAttribute.TypeContainingContracts">
  160. <summary>Gets the type that contains the code contracts for this type.</summary>
  161. <returns>The type that contains the code contracts for this type. </returns>
  162. </member>
  163. <member name="T:System.Diagnostics.Contracts.ContractClassForAttribute">
  164. <summary>Specifies that a class is a contract for a type.</summary>
  165. </member>
  166. <member name="M:System.Diagnostics.Contracts.ContractClassForAttribute.#ctor(System.Type)">
  167. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractClassForAttribute" /> class, specifying the type the current class is a contract for. </summary>
  168. <param name="typeContractsAreFor">The type the current class is a contract for.</param>
  169. </member>
  170. <member name="P:System.Diagnostics.Contracts.ContractClassForAttribute.TypeContractsAreFor">
  171. <summary>Gets the type that this code contract applies to. </summary>
  172. <returns>The type that this contract applies to.</returns>
  173. </member>
  174. <member name="T:System.Diagnostics.Contracts.ContractFailedEventArgs">
  175. <summary>Provides methods and data for the <see cref="E:System.Diagnostics.Contracts.Contract.ContractFailed" /> event.</summary>
  176. </member>
  177. <member name="M:System.Diagnostics.Contracts.ContractFailedEventArgs.#ctor(System.Diagnostics.Contracts.ContractFailureKind,System.String,System.String,System.Exception)">
  178. <summary>Provides data for the <see cref="E:System.Diagnostics.Contracts.Contract.ContractFailed" /> event.</summary>
  179. <param name="failureKind">One of the enumeration values that specifies the contract that failed.</param>
  180. <param name="message">The message for the event.</param>
  181. <param name="condition">The condition for the event.</param>
  182. <param name="originalException">The exception that caused the event.</param>
  183. </member>
  184. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Condition">
  185. <summary>Gets the condition for the failure of the contract.</summary>
  186. <returns>The condition for the failure.</returns>
  187. </member>
  188. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.FailureKind">
  189. <summary>Gets the type of contract that failed.</summary>
  190. <returns>One of the enumeration values that specifies the type of contract that failed.</returns>
  191. </member>
  192. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Handled">
  193. <summary>Indicates whether the <see cref="E:System.Diagnostics.Contracts.Contract.ContractFailed" /> event has been handled.</summary>
  194. <returns>true if the event has been handled; otherwise, false. </returns>
  195. </member>
  196. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Message">
  197. <summary>Gets the message that describes the <see cref="E:System.Diagnostics.Contracts.Contract.ContractFailed" /> event.</summary>
  198. <returns>The message that describes the event.</returns>
  199. </member>
  200. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.OriginalException">
  201. <summary>Gets the original exception that caused the <see cref="E:System.Diagnostics.Contracts.Contract.ContractFailed" /> event.</summary>
  202. <returns>The exception that caused the event.</returns>
  203. </member>
  204. <member name="M:System.Diagnostics.Contracts.ContractFailedEventArgs.SetHandled">
  205. <summary>Sets the <see cref="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Handled" /> property to true.</summary>
  206. </member>
  207. <member name="M:System.Diagnostics.Contracts.ContractFailedEventArgs.SetUnwind">
  208. <summary>Sets the <see cref="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Unwind" /> property to true.</summary>
  209. </member>
  210. <member name="P:System.Diagnostics.Contracts.ContractFailedEventArgs.Unwind">
  211. <summary>Indicates whether the code contract escalation policy should be applied.</summary>
  212. <returns>true to apply the escalation policy; otherwise, false. The default is false.</returns>
  213. </member>
  214. <member name="T:System.Diagnostics.Contracts.ContractFailureKind">
  215. <summary>Specifies the type of contract that failed. </summary>
  216. </member>
  217. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.Assert">
  218. <summary>An <see cref="Overload:System.Diagnostics.Contracts.Contract.Assert" /> contract failed.</summary>
  219. </member>
  220. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.Assume">
  221. <summary>An <see cref="Overload:System.Diagnostics.Contracts.Contract.Assume" /> contract failed.</summary>
  222. </member>
  223. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.Invariant">
  224. <summary>An <see cref="Overload:System.Diagnostics.Contracts.Contract.Invariant" /> contract failed.</summary>
  225. </member>
  226. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.Postcondition">
  227. <summary>An <see cref="Overload:System.Diagnostics.Contracts.Contract.Ensures" /> contract failed. </summary>
  228. </member>
  229. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.PostconditionOnException">
  230. <summary>An <see cref="Overload:System.Diagnostics.Contracts.Contract.EnsuresOnThrow" /> contract failed.</summary>
  231. </member>
  232. <member name="F:System.Diagnostics.Contracts.ContractFailureKind.Precondition">
  233. <summary>A <see cref="Overload:System.Diagnostics.Contracts.Contract.Requires" /> contract failed.</summary>
  234. </member>
  235. <member name="T:System.Diagnostics.Contracts.ContractInvariantMethodAttribute">
  236. <summary>Marks a method as being the invariant method for a class.</summary>
  237. </member>
  238. <member name="M:System.Diagnostics.Contracts.ContractInvariantMethodAttribute.#ctor">
  239. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractInvariantMethodAttribute" /> class. </summary>
  240. </member>
  241. <member name="T:System.Diagnostics.Contracts.ContractOptionAttribute">
  242. <summary>Enables you to set contract and tool options at assembly, type, or method granularity.</summary>
  243. </member>
  244. <member name="M:System.Diagnostics.Contracts.ContractOptionAttribute.#ctor(System.String,System.String,System.Boolean)">
  245. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractOptionAttribute" /> class by using the provided category, setting, and enable/disable value.</summary>
  246. <param name="category">The category for the option to be set.</param>
  247. <param name="setting">The option setting.</param>
  248. <param name="enabled">true to enable the option; false to disable the option.</param>
  249. </member>
  250. <member name="M:System.Diagnostics.Contracts.ContractOptionAttribute.#ctor(System.String,System.String,System.String)">
  251. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractOptionAttribute" /> class by using the provided category, setting, and value.</summary>
  252. <param name="category">The category of the option to be set.</param>
  253. <param name="setting">The option setting.</param>
  254. <param name="value">The value for the setting.</param>
  255. </member>
  256. <member name="P:System.Diagnostics.Contracts.ContractOptionAttribute.Category">
  257. <summary>Gets the category of the option.</summary>
  258. <returns>The category of the option.</returns>
  259. </member>
  260. <member name="P:System.Diagnostics.Contracts.ContractOptionAttribute.Enabled">
  261. <summary>Determines if an option is enabled.</summary>
  262. <returns>true if the option is enabled; otherwise, false.</returns>
  263. </member>
  264. <member name="P:System.Diagnostics.Contracts.ContractOptionAttribute.Setting">
  265. <summary>Gets the setting for the option.</summary>
  266. <returns>The setting for the option.</returns>
  267. </member>
  268. <member name="P:System.Diagnostics.Contracts.ContractOptionAttribute.Value">
  269. <summary>Gets the value for the option.</summary>
  270. <returns>The value for the option.</returns>
  271. </member>
  272. <member name="T:System.Diagnostics.Contracts.ContractPublicPropertyNameAttribute">
  273. <summary>Specifies that a field can be used in method contracts when the field has less visibility than the method. </summary>
  274. </member>
  275. <member name="M:System.Diagnostics.Contracts.ContractPublicPropertyNameAttribute.#ctor(System.String)">
  276. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractPublicPropertyNameAttribute" /> class. </summary>
  277. <param name="name">The property name to apply to the field.</param>
  278. </member>
  279. <member name="P:System.Diagnostics.Contracts.ContractPublicPropertyNameAttribute.Name">
  280. <summary>Gets the property name to be applied to the field.</summary>
  281. <returns>The property name to be applied to the field.</returns>
  282. </member>
  283. <member name="T:System.Diagnostics.Contracts.ContractReferenceAssemblyAttribute">
  284. <summary>Specifies that an assembly is a reference assembly that contains contracts.</summary>
  285. </member>
  286. <member name="M:System.Diagnostics.Contracts.ContractReferenceAssemblyAttribute.#ctor">
  287. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractReferenceAssemblyAttribute" /> class. </summary>
  288. </member>
  289. <member name="T:System.Diagnostics.Contracts.ContractRuntimeIgnoredAttribute">
  290. <summary>Identifies a member that has no run-time behavior.</summary>
  291. </member>
  292. <member name="M:System.Diagnostics.Contracts.ContractRuntimeIgnoredAttribute.#ctor">
  293. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractRuntimeIgnoredAttribute" /> class. </summary>
  294. </member>
  295. <member name="T:System.Diagnostics.Contracts.ContractVerificationAttribute">
  296. <summary>Instructs analysis tools to assume the correctness of an assembly, type, or member without performing static verification.</summary>
  297. </member>
  298. <member name="M:System.Diagnostics.Contracts.ContractVerificationAttribute.#ctor(System.Boolean)">
  299. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.ContractVerificationAttribute" /> class. </summary>
  300. <param name="value">true to require verification; otherwise, false. </param>
  301. </member>
  302. <member name="P:System.Diagnostics.Contracts.ContractVerificationAttribute.Value">
  303. <summary>Gets the value that indicates whether to verify the contract of the target. </summary>
  304. <returns>true if verification is required; otherwise, false.</returns>
  305. </member>
  306. <member name="T:System.Diagnostics.Contracts.PureAttribute">
  307. <summary>Indicates that a type or method is pure, that is, it does not make any visible state changes.</summary>
  308. </member>
  309. <member name="M:System.Diagnostics.Contracts.PureAttribute.#ctor">
  310. <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Contracts.PureAttribute" /> class. </summary>
  311. </member>
  312. <member name="T:System.Runtime.CompilerServices.ContractHelper">
  313. <summary>Provides methods that the binary rewriter uses to handle contract failures.</summary>
  314. </member>
  315. <member name="M:System.Runtime.CompilerServices.ContractHelper.RaiseContractFailedEvent(System.Diagnostics.Contracts.ContractFailureKind,System.String,System.String,System.Exception)">
  316. <summary>Used by the binary rewriter to activate the default failure behavior.</summary>
  317. <returns>A null reference (Nothing in Visual Basic) if the event was handled and should not trigger a failure; otherwise, returns the localized failure message.</returns>
  318. <param name="failureKind">One of the enumeration values that specifies the type of failure.</param>
  319. <param name="userMessage">Additional user information.</param>
  320. <param name="conditionText">The description of the condition that caused the failure.</param>
  321. <param name="innerException">The inner exception that caused the current exception.</param>
  322. <exception cref="T:System.ArgumentException">
  323. <paramref name="failureKind" /> is not a valid <see cref="T:System.Diagnostics.Contracts.ContractFailureKind" /> value.</exception>
  324. </member>
  325. <member name="M:System.Runtime.CompilerServices.ContractHelper.TriggerFailure(System.Diagnostics.Contracts.ContractFailureKind,System.String,System.String,System.String,System.Exception)">
  326. <summary>Triggers the default failure behavior.</summary>
  327. <param name="kind">One of the enumeration values that specifies the type of failure.</param>
  328. <param name="displayMessage">The message to display.</param>
  329. <param name="userMessage">Additional user information.</param>
  330. <param name="conditionText">The description of the condition that caused the failure.</param>
  331. <param name="innerException">The inner exception that caused the current exception.</param>
  332. </member>
  333. </members>
  334. </doc>