UserCollection.GetByEmail メソッド
Returns the user with the specified e-mail address.
名前空間: Microsoft.SharePoint.Client
アセンブリ: 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 Function GetByEmail ( _
emailAddress As String _
) As User
'使用
Dim instance As UserCollection
Dim emailAddress As String
Dim returnValue As User
returnValue = instance.GetByEmail(emailAddress)
public User GetByEmail(
string emailAddress
)
パラメーター
emailAddress
型: System.StringA string that contains the e-mail address of the user.
It must not be null 参照 (Visual Basic のNothing ).
It must not be empty.
Its length must be equal to or less than 255.
戻り値
型: Microsoft.SharePoint.Client.User
Returns a User.instance representing the user with the specified e-mail address.
例外
例外 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | User cannot be found. Error code: -2146232832. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |