File Sharing, LAN file sharing

Source: Internet
Author: User

File Sharing, LAN file sharing

FileShare Enumeration contains constants used to control the access types that other IsolatedStorageFileStream objects can have to the same file. This enumeration has a FlagsAttribute attribute that combines the Member values in bits. (Namespace: System. IO)

Syntax

 

[FlagsAttribute]

 

[ComVisibleAttribute(true)]

 

public enum FileShare

Member

Member name Description
None

You are not allowed to share the current file.

Before the file is closed, any request to open the file will fail.

Read

Allow subsequent open file reading.

If this flag is not specified, any requests that open the file for reading will fail before the file is closed.

Write

Allow subsequent open file writing.

If this flag is specified, any request to open the file for writing will fail before the file is closed.

ReadWrite

Allow subsequent open files to be read or written.

If this flag is not specified, any requests that open the file for reading or writing will fail before the file is closed.

Delete Allow subsequent file deletion.
Inheritable

The file handle can be inherited by sub-processes.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.