'Declaration Protected Overrides Function GetAutomaticReadFileShare() As FileShare
protected override FileShare GetAutomaticReadFileShare()
Return Value
The FileShare value to be used when opening read streams for copy/move operations.
'Declaration Protected Overrides Function GetAutomaticReadFileShare() As FileShare
protected override FileShare GetAutomaticReadFileShare()
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.
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