获取与应用程序的请求上下文关联的应用程序主体。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetAppPrincipal ( _
serviceContext As SPServiceContext _
) As SPAppPrincipal
用法
Dim instance As SPAppRequestContext
Dim serviceContext As SPServiceContext
Dim returnValue As SPAppPrincipal
returnValue = instance.GetAppPrincipal(serviceContext)
public SPAppPrincipal GetAppPrincipal(
SPServiceContext serviceContext
)
参数
serviceContext
类型:Microsoft.SharePoint.SPServiceContext服务上下文。
返回值
类型:Microsoft.SharePoint.SPAppPrincipal
应用程序的主体。