GraphExtensions.ToPerson(User) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Simple method to convert a Microsoft.Graph.User to a Microsoft.Graph.Person with basic common properties like Microsoft.Graph.Entity.Id, Microsoft.Graph.User.DisplayName, Microsoft.Graph.Person.ScoredEmailAddresses, Microsoft.Graph.User.GivenName, and Microsoft.Graph.User.Surname intact.
public static Microsoft.Graph.Person ToPerson(this Microsoft.Graph.User user);
static member ToPerson : Microsoft.Graph.User -> Microsoft.Graph.Person
<Extension()>
Public Function ToPerson (user As User) As Person
Parameters
- user
- Microsoft.Graph.User
Microsoft.Graph.User instance to convert.
Returns
A new basic Microsoft.Graph.Person representation of that user.