共用方式為


SPUserCollection.GetByEmail method

傳回指定的電子郵件地址的使用者。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetByEmail ( _
    emailAddress As String _
) As SPUser
'用途
Dim instance As SPUserCollection
Dim emailAddress As String
Dim returnValue As SPUser

returnValue = instance.GetByEmail(emailAddress)
public SPUser GetByEmail(
    string emailAddress
)

參數

  • emailAddress
    Type: System.String

    字串,包含使用者的電子郵件地址。

傳回值

Type: Microsoft.SharePoint.SPUser
Microsoft.SharePoint.SPUser 物件,表示使用者。

請參閱

參照

SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace