共用方式為


Utility.GetAppLicenseInformation 方法

傳回所有應用程式授權指派給目前使用者指定的應用程式的 SharePoint 中指定的 SharePoint 部署的集合。

命名空間:  Microsoft.SharePoint.Client.Utilities
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Shared Function GetAppLicenseInformation ( _
    context As ClientRuntimeContext, _
    productId As Guid _
) As ClientResult(Of AppLicenseCollection)
'用途
Dim context As ClientRuntimeContext
Dim productId As Guid
Dim returnValue As ClientResult(Of AppLicenseCollection)

returnValue = Utility.GetAppLicenseInformation(context, _
    productId)
public static ClientResult<AppLicenseCollection> GetAppLicenseInformation(
    ClientRuntimeContext context,
    Guid productId
)

參數

  • productId
    類型:System.Guid

    應用程式的產品識別碼。

傳回值

類型:Microsoft.SharePoint.Client.ClientResult<AppLicenseCollection>
所有應用程式授權指派給目前的使用者指定的應用程式的 SharePoint 的集合。

備註

使用者可以有多個應用程式授權指派給他們在指定的 SharePoint 部署中相同的應用程式。

如果多個授權所購買的相同的應用程式,請使用不同的 Microsoft 帳戶,會以下列順序的優先順序傳回授權 ︰

  • 付費

  • 免費

  • 未到期的試用版

  • 過期的試用版

GetAppLicenseInformation方法不會傳回與過期或保留權杖的授權。保留的權杖是授權權杖其中不能用 SharePoint; 會自動更新若要保持有效,保留的權杖必須更新手動由登入 Office 市集購買。

在應用程式資訊清單中找的應用程式的產品識別碼。

如需有關應用程式授權的詳細資訊,請參閱授權您的 Office 和 SharePoint 增益集

請參閱

參照

Utility 類別

Utility 成員

Microsoft.SharePoint.Client.Utilities 命名空間