SPSite.WebApplication 属性

Gets the SharePoint Foundation Web application to which the site collection belongs.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property WebApplication As SPWebApplication
    Get
用法
Dim instance As SPSite
Dim value As SPWebApplication

value = instance.WebApplication
public SPWebApplication WebApplication { get; }

属性值

类型:Microsoft.SharePoint.Administration.SPWebApplication
The parent Web application.

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间