SPWeb.LoadApp 方法

Uploads an App package and creates an instance from it.

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

语法

声明
Public Function LoadApp ( _
    appPackageStream As Stream, _
    installationLocaleLCID As Integer _
) As SPAppInstance
用法
Dim instance As SPWeb
Dim appPackageStream As Stream
Dim installationLocaleLCID As Integer
Dim returnValue As SPAppInstance

returnValue = instance.LoadApp(appPackageStream, _
    installationLocaleLCID)
public SPAppInstance LoadApp(
    Stream appPackageStream,
    int installationLocaleLCID
)

参数

  • installationLocaleLCID
    类型:System.Int32

    The LCID of the locale used to create the app instance.

返回值

类型:Microsoft.SharePoint.Administration.SPAppInstance
The created AppInstance.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间