共用方式為


SPSite.FileNotFoundUrl property

取得 SPSite swerver 相對 Url 或檔案找不到網頁的絕對 URL。這個值當做 HTTP 要求重新導向 URL 位置可以找到的資源。

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

Syntax

'宣告
Public Property FileNotFoundUrl As String
    Get
    Set
'用途
Dim instance As SPSite
Dim value As String

value = instance.FileNotFoundUrl

instance.FileNotFoundUrl = value
public string FileNotFoundUrl { get; set; }

Property value

Type: System.String
伺服器相對或絕對 URL 檔案找不到的頁面。值必須以 http(s) 或以斜線開頭 /。必須編碼 URL。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace