共用方式為


SPAdministrationWebApplication.GetInstanceLocalToFarm Method

Returns the administration Web application that is local to the server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function GetInstanceLocalToFarm ( _
    farm As SPFarm _
) As SPAdministrationWebApplication
'Usage
Dim farm As SPFarm
Dim returnValue As SPAdministrationWebApplication

returnValue = SPAdministrationWebApplication.GetInstanceLocalToFarm(farm)
public static SPAdministrationWebApplication GetInstanceLocalToFarm(
    SPFarm farm
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.SPAdministrationWebApplication
An SPAdministrationWebApplication object that represents the administration Web application.

See Also

Reference

SPAdministrationWebApplication Class

SPAdministrationWebApplication Members

Microsoft.SharePoint.Administration Namespace