Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / DiskFile Class / GetAutomaticWriteFileShare Method


In This Topic
    GetAutomaticWriteFileShare Method (DiskFile)
    In This Topic
    Gets a value indicating the FileShare value to be used when opening write streams for copy/move operations.
    Syntax
    'Declaration
     
    Protected Overrides Function GetAutomaticWriteFileShare() As FileShare
    'Usage
     
    Dim instance As DiskFile
    Dim value As FileShare
     
    value = instance.GetAutomaticWriteFileShare()
    protected override FileShare GetAutomaticWriteFileShare()

    Return Value

    The FileShare value to be used when opening write streams for copy/move operations.
    Remarks

    This override returns the value of the static property DiskFile.DefaultAutomaticWriteDiskFileShare.

    Unless there are needs to force a more relaxed FileShare when opening files for writing, it is not necessary to override this method as it can potentially cause other applications to read incomplete or invalid data.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also