SPPrefixCollection.FindSiteRoot method
尋找要求伺服器相對 url 的開頭會比對字首此集合中。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function FindSiteRoot ( _
serverRelativeRequestPath As String, _
<OutAttribute> ByRef matchedPrefix As SPPrefix _
) As String
'用途
Dim instance As SPPrefixCollection
Dim serverRelativeRequestPath As String
Dim matchedPrefix As SPPrefix
Dim returnValue As String
returnValue = instance.FindSiteRoot(serverRelativeRequestPath, _
matchedPrefix)
public string FindSiteRoot(
string serverRelativeRequestPath,
out SPPrefix matchedPrefix
)
參數
serverRelativeRequestPath
Type: System.String要求伺服器相對 url。
- matchedPrefix
Type: Microsoft.SharePoint.Administration.SPPrefix
傳回值
Type: System.String
代表站台或 null,如果找不相符的伺服器相對要求 url 部分。