Skip to content

Commit 3c18abd

Browse files
authored
Clarify FileShare enum descriptions to remove ambiguity
Removed misleading word "subsequent" from FileShare enum member descriptions. The previous wording implied these flags only affect future file operations, but they actually control access for both the current file open operation and all other attempts to access the file. Updated all four affected members (Delete, Read, ReadWrite, Write) to use clearer language: "Allows the file to be opened..." instead of "Allows subsequent opening..." Fixes #10572
1 parent c9db664 commit 3c18abd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.IO/FileShare.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
</ReturnValue>
143143
<MemberValue>4</MemberValue>
144144
<Docs>
145-
<summary>Allows subsequent deleting of a file.</summary>
145+
<summary>Allows the file to be deleted by this process or other processes. The file can be deleted while it remains open.</summary>
146146
</Docs>
147147
</Member>
148148
<Member MemberName="Inheritable">
@@ -277,7 +277,7 @@
277277
</ReturnValue>
278278
<MemberValue>1</MemberValue>
279279
<Docs>
280-
<summary>Allows subsequent opening of the file for reading. If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
280+
<summary>Allows the file to be opened for reading by this process or other processes. If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
281281
</Docs>
282282
</Member>
283283
<Member MemberName="ReadWrite">
@@ -322,7 +322,7 @@
322322
</ReturnValue>
323323
<MemberValue>3</MemberValue>
324324
<Docs>
325-
<summary>Allows subsequent opening of the file for reading or writing. If this flag is not specified, any request to open the file for reading or writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
325+
<summary>Allows the file to be opened for reading or writing by this process or other processes. If this flag is not specified, any request to open the file for reading or writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
326326
</Docs>
327327
</Member>
328328
<Member MemberName="Write">
@@ -367,7 +367,7 @@
367367
</ReturnValue>
368368
<MemberValue>2</MemberValue>
369369
<Docs>
370-
<summary>Allows subsequent opening of the file for writing. If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
370+
<summary>Allows the file to be opened for writing by this process or other processes. If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file.</summary>
371371
</Docs>
372372
</Member>
373373
</Members>

0 commit comments

Comments
 (0)