Share via


SPWeb.GetFileOrFolderObject method

擷取檔案或資料夾上指定的 URL 的網站。

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

Syntax

'宣告
Public Function GetFileOrFolderObject ( _
    strUrl As String _
) As Object
'用途
Dim instance As SPWeb
Dim strUrl As String
Dim returnValue As Object

returnValue = instance.GetFileOrFolderObject(strUrl)
public Object GetFileOrFolderObject(
    string strUrl
)

參數

傳回值

Type: System.Object
檔案或資料夾上指定的 URL 的網站。

備註

傳遞至這個方法的 URL 可以是絕對 URL 或伺服器相對的 URL。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace