SPWeb.GetObject 方法
Retrieves a file, folder, or list item that is associated with the specified URL.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetObject ( _
strUrl As String _
) As Object
用法
Dim instance As SPWeb
Dim strUrl As String
Dim returnValue As Object
returnValue = instance.GetObject(strUrl)
public Object GetObject(
string strUrl
)
参数
strUrl
类型:System.StringThe URL of the object to retrieve.
返回值
类型:System.Object
The file, folder, or list item that is associated with the specified URL.
异常
异常 | 条件 |
---|---|
ArgumentNullException | strUrl is null . |
备注
If the strUrl parameter is an empty string, this method returns the root folder of the website.