Xceed .NET Libraries Documentation
GetAutomaticReadFileShare Method (DiskFile)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > DiskFile Class : GetAutomaticReadFileShare Method
Gets a value indicating the FileShare value to be used when opening read streams for copy/move operations.
Syntax
'Declaration
 
Protected Overrides Function GetAutomaticReadFileShare() As FileShare
'Usage
 
Dim instance As DiskFile
Dim value As FileShare
 
value = instance.GetAutomaticReadFileShare()
protected override FileShare GetAutomaticReadFileShare()

Return Value

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

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

Unless there is a need to force a more relaxed FileShare when opening files for reading, it is not necessary to override this method as it can potentially cause the reading of 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

Reference

DiskFile Class
DiskFile Members
Base Implementation in GetAutomaticReadFileShare