SPAccessRequests.AcceptInvitation method
Accepts an external user invitation.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub AcceptInvitation ( _
invitation As SPListItem, _
guestUser As SPUser _
)
'Usage
Dim invitation As SPListItem
Dim guestUser As SPUserSPAccessRequests.AcceptInvitation(invitation, _
guestUser)
public static void AcceptInvitation(
SPListItem invitation,
SPUser guestUser
)
Parameters
invitation
Type: Microsoft.SharePoint.SPListItemThe item that represents the invitation.
guestUser
Type: Microsoft.SharePoint.SPUserThe SPUser that was added to SharePoint that represents the external user.