返回 SharePoint 部署的部署 ID。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetAppLicenseDeploymentId As Guid
用法
Dim returnValue As Guid
returnValue = SPUtility.GetAppLicenseDeploymentId()
public static Guid GetAppLicenseDeploymentId()
返回值
类型:System.Guid
指定的 SharePoint 部署的的部署的 ID。
备注
对于 SharePoint 的应用程序,每个应用程序许可证适用于特定的 SharePoint 部署的特定应用程序。一般情况下,以便应用程序许可证部署定义为 SharePoint 场中的为本地 SharePoint 安装和 Office 365 中 SharePoint online 租户。部署范围而异,但是,根据本地 SharePoint 安装的配置。
部署 ID 是由 SharePoint 生成和记录由 Office 商店第一个时间从特定的 SharePoint 安装的任何人都可以访问 Office 商店网站的 GUID。
从不发布或传输给未授权的第三方您部署的 id。对于本地 SharePoint 安装,服务器场管理员可以为灾难恢复或测试/生产环境方案设置通过 Windows PowerShell 部署 ID。
For more information on deployment IDs, and information about app licenses in general, see 许可 Office 和 SharePoint 应用程序.