SPUtility.ResolveWindowsPrincipal method (SPWeb, SPWebApplication, String, SPPrincipalType, Boolean)
解析到 SPPrincipalInfo 物件的 Windows 帳戶的使用者資訊 (例如電子郵件地址或顯示名稱)。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<DirectoryServicesPermissionAttribute(SecurityAction.Assert, Unrestricted := True)> _
Public Shared Function ResolveWindowsPrincipal ( _
web As SPWeb, _
webApp As SPWebApplication, _
input As String, _
scopes As SPPrincipalType, _
inputIsEmailOnly As Boolean _
) As SPPrincipalInfo
'用途
Dim web As SPWeb
Dim webApp As SPWebApplication
Dim input As String
Dim scopes As SPPrincipalType
Dim inputIsEmailOnly As Boolean
Dim returnValue As SPPrincipalInfo
returnValue = SPUtility.ResolveWindowsPrincipal(web, _
webApp, input, scopes, inputIsEmailOnly)
[DirectoryServicesPermissionAttribute(SecurityAction.Assert, Unrestricted = true)]
public static SPPrincipalInfo ResolveWindowsPrincipal(
SPWeb web,
SPWebApplication webApp,
string input,
SPPrincipalType scopes,
bool inputIsEmailOnly
)
參數
- web
Type: Microsoft.SharePoint.SPWeb
- webApp
Type: Microsoft.SharePoint.Administration.SPWebApplication
- input
Type: System.String
- scopes
Type: Microsoft.SharePoint.Utilities.SPPrincipalType
- inputIsEmailOnly
Type: System.Boolean
傳回值
Type: Microsoft.SharePoint.Utilities.SPPrincipalInfo
會傳回SPPrincipalInfo。