次の方法で共有


SPWebApplication.Lookup method

Finds the Web application that is located at the specified URL.

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

Syntax

'Declaration
Public Shared Function Lookup ( _
    requestUri As Uri _
) As SPWebApplication
'Usage
Dim requestUri As Uri
Dim returnValue As SPWebApplication

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

Parameters

  • requestUri
    Type: System.Uri

    A System.Uri object that specifies the URL of the Web application.

Return value

Type: Microsoft.SharePoint.Administration.SPWebApplication
An SPWebApplication object.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace