Skip to content

Commit dc4190a

Browse files
authored
Improved documentation when the constructor is called with value 0 (#9544)
1 parent 2b6497e commit dc4190a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Runtime/MemoryFailPoint.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
6565
To use a memory gate, you must create a <xref:System.Runtime.MemoryFailPoint> object and specify the number of megabytes (MB) of memory that the next operation is expected to use. If enough memory is not available, an <xref:System.InsufficientMemoryException> exception is thrown.
6666
67-
The parameter of the constructor must be a positive integer. A negative value raises an <xref:System.ArgumentOutOfRangeException> exception.
67+
The parameter of the constructor must be a positive integer. A negative value or 0 raises an <xref:System.ArgumentOutOfRangeException> exception.
6868
6969
<xref:System.Runtime.MemoryFailPoint> operates at a granularity of 16 MB. Any values smaller than 16 MB are treated as 16 MB, and other values are treated as the next largest multiple of 16 MB.
7070
@@ -136,7 +136,7 @@
136136
137137
]]></format>
138138
</remarks>
139-
<exception cref="T:System.ArgumentOutOfRangeException">The specified memory size is negative.</exception>
139+
<exception cref="T:System.ArgumentOutOfRangeException">The specified memory size is negative or 0.</exception>
140140
<exception cref="T:System.InsufficientMemoryException">There is insufficient memory to begin execution of the code protected by the gate.</exception>
141141
</Docs>
142142
</Member>

0 commit comments

Comments
 (0)