共用方式為


SPFile.ServerRedirected property

取得布林值,這個值,指出是否使用者沒有存取以檢視來源檔案,或沒有適當的用戶端應用程式安裝,重新導向至檔案的伺服器端呈現當他們按一下連結以檢視它。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property ServerRedirected As Boolean
    Get
'用途
Dim instance As SPFile
Dim value As Boolean

value = instance.ServerRedirected
public bool ServerRedirected { get; }

Property value

Type: System.Boolean
true如果使用者重新導向至伺服器端呈現的檔案。否則, false。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace