SPWeb.LoadAndInstallApp 方法

Uploads and installs an app package.

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

语法

声明
Public Function LoadAndInstallApp ( _
    appPackageStream As Stream _
) As SPAppInstance
用法
Dim instance As SPWeb
Dim appPackageStream As Stream
Dim returnValue As SPAppInstance

returnValue = instance.LoadAndInstallApp(appPackageStream)
public SPAppInstance LoadAndInstallApp(
    Stream appPackageStream
)

参数

返回值

类型:Microsoft.SharePoint.Administration.SPAppInstance
The instance of the created application.

异常

异常 条件
ArgumentNullException

The AppPackageStream parameter is 空引用(无 在 Visual Basic 中).

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间