解析到SPPrincipalInfo对象的主体信息。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function ResolvePrincipal ( _
webApp As SPWebApplication, _
urlZone As Nullable(Of SPUrlZone), _
input As String, _
scopes As SPPrincipalType, _
sources As SPPrincipalSource, _
inputIsEmailOnly As Boolean _
) As SPPrincipalInfo
用法
Dim webApp As SPWebApplication
Dim urlZone As Nullable(Of SPUrlZone)
Dim input As String
Dim scopes As SPPrincipalType
Dim sources As SPPrincipalSource
Dim inputIsEmailOnly As Boolean
Dim returnValue As SPPrincipalInfo
returnValue = SPUtility.ResolvePrincipal(webApp, _
urlZone, input, scopes, sources, inputIsEmailOnly)
public static SPPrincipalInfo ResolvePrincipal(
SPWebApplication webApp,
Nullable<SPUrlZone> urlZone,
string input,
SPPrincipalType scopes,
SPPrincipalSource sources,
bool inputIsEmailOnly
)
参数
webApp
类型:Microsoft.SharePoint.Administration.SPWebApplication在服务器场上安装 SharePoint 服务应用程序。
urlZone
类型:System.Nullable<SPUrlZone>从其请求已接收由 SharePoint 服务,则为 null 的区域。
input
类型:System.String显示名称、 电子邮件地址或标识主体的登录名。
scopes
类型:Microsoft.SharePoint.Utilities.SPPrincipalType指示要解析的主体的类型SPPrincipalType掩码。
sources
类型:Microsoft.SharePoint.Utilities.SPPrincipalSource指示要解决方案过程中使用的源SPPrincipalSource掩码。
inputIsEmailOnly
类型:System.Boolean一个布尔值,该值指示主体搜索过程中应匹配的字段。true表示匹配项可通过使用主体的电子邮件地址。false表示匹配项可通过使用任何之一的显示名称、 电子邮件地址或主体的登录名。
返回值
类型:Microsoft.SharePoint.Utilities.SPPrincipalInfo
一个代表主体信息的SPPrincipalInfo对象。