Cuemon .NET Framework
CanAccess Method (FileUtility)

The file wanted for access.
The method to access the file by.
Determines whether a file can be accessed by the specified System.IO.FileAccess method.
Syntax
'Declaration
 
Public Shared Function CanAccess( _
   ByVal path As String, _
   ByVal access As FileAccess _
) As Boolean
public static bool CanAccess( 
   string path,
   FileAccess access
)

Parameters

path
The file wanted for access.
access
The method to access the file by.

Return Value

true if a file can be accessed by the specified System.IO.FileAccess method; otherwise, false.
Requirements

Target Platforms: Windows 8, Windows Server 2012, 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

FileUtility Class
FileUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback