共用方式為


SPWebApplication.Lookup method

會尋找位於指定之 URL 的 Web 應用程式。

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

Syntax

'宣告
Public Shared Function Lookup ( _
    requestUri As Uri _
) As SPWebApplication
'用途
Dim requestUri As Uri
Dim returnValue As SPWebApplication

returnValue = SPWebApplication.Lookup(requestUri)
public static SPWebApplication Lookup(
    Uri requestUri
)

參數

  • requestUri
    Type: System.Uri

    指定 Web 應用程式的 URL System.Uri物件。

傳回值

Type: Microsoft.SharePoint.Administration.SPWebApplication
SPWebApplication 物件。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace