SPFile.CanOpenFile method (Boolean)
表示目前使用者是否有檢視的檔案內容的權限指定的存取層級。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function CanOpenFile ( _
checkCanGetFileSource As Boolean _
) As Boolean
'用途
Dim instance As SPFile
Dim checkCanGetFileSource As Boolean
Dim returnValue As Boolean
returnValue = instance.CanOpenFile(checkCanGetFileSource)
public bool CanOpenFile(
bool checkCanGetFileSource
)
參數
checkCanGetFileSource
Type: System.Boolean若要確認使用者可以檢視來源檔案 ; true否則, false。
傳回值
Type: System.Boolean
true如果目前的使用者具有權限 ;否則, false。