-
Notifications
You must be signed in to change notification settings - Fork 155
/
GraphExtensions.xml
197 lines (197 loc) · 12.2 KB
/
GraphExtensions.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<Type Name="GraphExtensions" FullName="Microsoft.Toolkit.Graph.Extensions.GraphExtensions">
<TypeSignature Language="C#" Value="public static class GraphExtensions" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit GraphExtensions extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.Toolkit.Graph.Extensions.GraphExtensions" />
<TypeSignature Language="VB.NET" Value="Public Module GraphExtensions" />
<TypeSignature Language="F#" Value="type GraphExtensions = class" />
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
Extension methods to the Graph SDK used by the Microsoft.Toolkit.Graph.Controls.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="FindPersonAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<Microsoft.Graph.IUserPeopleCollectionPage> FindPersonAsync (this Microsoft.Graph.GraphServiceClient graph, string query);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<class Microsoft.Graph.IUserPeopleCollectionPage> FindPersonAsync(class Microsoft.Graph.GraphServiceClient graph, string query) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Graph.Extensions.GraphExtensions.FindPersonAsync(Microsoft.Graph.GraphServiceClient,System.String)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function FindPersonAsync (graph As GraphServiceClient, query As String) As Task(Of IUserPeopleCollectionPage)" />
<MemberSignature Language="F#" Value="static member FindPersonAsync : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<Microsoft.Graph.IUserPeopleCollectionPage>" Usage="Microsoft.Toolkit.Graph.Extensions.GraphExtensions.FindPersonAsync (graph, query)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerStepThrough]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerStepThrough>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Graph.IUserPeopleCollectionPage></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="graph" Type="Microsoft.Graph.GraphServiceClient" RefType="this" />
<Parameter Name="query" Type="System.String" />
</Parameters>
<Docs>
<param name="graph">Instance of the <see cref="T:Microsoft.Graph.GraphServiceClient" />.</param>
<param name="query">User to search for.</param>
<summary>
Shortcut to perform a person query.
</summary>
<returns>
<see cref="T:Microsoft.Graph.IUserPeopleCollectionPage" /> collection of <see cref="T:Microsoft.Graph.Person" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="FindUserAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<Microsoft.Graph.IGraphServiceUsersCollectionPage> FindUserAsync (this Microsoft.Graph.GraphServiceClient graph, string query);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<class Microsoft.Graph.IGraphServiceUsersCollectionPage> FindUserAsync(class Microsoft.Graph.GraphServiceClient graph, string query) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Graph.Extensions.GraphExtensions.FindUserAsync(Microsoft.Graph.GraphServiceClient,System.String)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function FindUserAsync (graph As GraphServiceClient, query As String) As Task(Of IGraphServiceUsersCollectionPage)" />
<MemberSignature Language="F#" Value="static member FindUserAsync : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<Microsoft.Graph.IGraphServiceUsersCollectionPage>" Usage="Microsoft.Toolkit.Graph.Extensions.GraphExtensions.FindUserAsync (graph, query)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerStepThrough]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerStepThrough>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Graph.IGraphServiceUsersCollectionPage></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="graph" Type="Microsoft.Graph.GraphServiceClient" RefType="this" />
<Parameter Name="query" Type="System.String" />
</Parameters>
<Docs>
<param name="graph">Instance of the <see cref="T:Microsoft.Graph.GraphServiceClient" />.</param>
<param name="query">User to search for.</param>
<summary>
Shortcut to perform a user query.
</summary>
<returns>
<see cref="T:Microsoft.Graph.IGraphServiceUsersCollectionPage" /> collection of <see cref="T:Microsoft.Graph.User" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetUserPhoto">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<System.IO.Stream> GetUserPhoto (this Microsoft.Graph.GraphServiceClient graph, string userid);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<class System.IO.Stream> GetUserPhoto(class Microsoft.Graph.GraphServiceClient graph, string userid) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Graph.Extensions.GraphExtensions.GetUserPhoto(Microsoft.Graph.GraphServiceClient,System.String)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function GetUserPhoto (graph As GraphServiceClient, userid As String) As Task(Of Stream)" />
<MemberSignature Language="F#" Value="static member GetUserPhoto : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<System.IO.Stream>" Usage="Microsoft.Toolkit.Graph.Extensions.GraphExtensions.GetUserPhoto (graph, userid)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerStepThrough]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerStepThrough>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.IO.Stream></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="graph" Type="Microsoft.Graph.GraphServiceClient" RefType="this" />
<Parameter Name="userid" Type="System.String" />
</Parameters>
<Docs>
<param name="graph">Instance of the <see cref="T:Microsoft.Graph.GraphServiceClient" />.</param>
<param name="userid">UserID.</param>
<summary>
Helper to get the photo of a particular user.
</summary>
<returns>Stream with user photo or null.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Search<T>">
<MemberSignature Language="C#" Value="public static T Search<T> (this T request, string query) where T : Microsoft.Graph.IBaseRequest;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T Search<(class Microsoft.Graph.IBaseRequest) T>(!!T request, string query) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Graph.Extensions.GraphExtensions.Search``1(``0,System.String)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function Search(Of T As IBaseRequest) (request As T, query As String) As T" />
<MemberSignature Language="F#" Value="static member Search : 'T * string -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)" Usage="Microsoft.Toolkit.Graph.Extensions.GraphExtensions.Search (request, query)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>T</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<InterfaceName>Microsoft.Graph.IBaseRequest</InterfaceName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="request" Type="T" RefType="this" />
<Parameter Name="query" Type="System.String" />
</Parameters>
<Docs>
<typeparam name="T">
<see cref="T:Microsoft.Graph.IBaseRequest" /> type.</typeparam>
<param name="request">Request chain.</param>
<param name="query">Query to add for searching in QueryOptions.</param>
<summary>
Extension to provider Searching on OData Requests.
</summary>
<returns>Same type.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ToPerson">
<MemberSignature Language="C#" Value="public static Microsoft.Graph.Person ToPerson (this Microsoft.Graph.User user);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Microsoft.Graph.Person ToPerson(class Microsoft.Graph.User user) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Graph.Extensions.GraphExtensions.ToPerson(Microsoft.Graph.User)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function ToPerson (user As User) As Person" />
<MemberSignature Language="F#" Value="static member ToPerson : Microsoft.Graph.User -> Microsoft.Graph.Person" Usage="Microsoft.Toolkit.Graph.Extensions.GraphExtensions.ToPerson user" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Graph</AssemblyName>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Graph.Person</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="user" Type="Microsoft.Graph.User" RefType="this" />
</Parameters>
<Docs>
<param name="user">
<see cref="T:Microsoft.Graph.User" /> instance to convert.</param>
<summary>
Simple method to convert a <see cref="T:Microsoft.Graph.User" /> to a <see cref="T:Microsoft.Graph.Person" /> with basic common properties like <see cref="P:Microsoft.Graph.Entity.Id" />, <see cref="P:Microsoft.Graph.User.DisplayName" />, <see cref="P:Microsoft.Graph.Person.EmailAddresses" />, <see cref="P:Microsoft.Graph.User.GivenName" />, and <see cref="P:Microsoft.Graph.User.Surname" /> intact.
</summary>
<returns>A new basic <see cref="T:Microsoft.Graph.Person" /> representation of that user.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>