共用方式為


IDeploymentContext.WebApplicationUrl Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the root URL of the SPWebApplication.

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

Syntax

'Declaration
Function WebApplicationUrl As Uri
Uri WebApplicationUrl()

Return Value

Type: System.Uri
The root URL of the SPWebApplication.

.NET Framework Security

See Also

Reference

IDeploymentContext Interface

Microsoft.VisualStudio.SharePoint.Deployment Namespace