次の方法で共有


UserCollection.GetByLoginName メソッド

Returns the user with the specified login name.

名前空間:  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 GetByLoginName ( _
    loginName As String _
) As User
'使用
Dim instance As UserCollection
Dim loginName As String
Dim returnValue As User

returnValue = instance.GetByLoginName(loginName)
public User GetByLoginName(
    string loginName
)

パラメーター

  • loginName
    型: System.String

    A string that contains the login name.

    It must not be null 参照 (Visual Basic のNothing ).

    It must not be empty.

    Its length must be equal to or less than 251.

戻り値

型: Microsoft.SharePoint.Client.User
A User object that represents the user.

例外

例外 条件
SPException

The user cannot be found. Error code: -2146232832.

UnauthorizedAccessException

Access is denied. Error code: -2147024891.

関連項目

参照先

UserCollection クラス

UserCollection メンバー

Microsoft.SharePoint.Client 名前空間