FacebookClientExtensions.GetCurrentUserFriendsAsync<TUserFriend> Method (FacebookClient)
Gets the current user friends information.
Namespace: Microsoft.AspNet.Mvc.Facebook.Client
Assembly: Microsoft.AspNet.Mvc.Facebook (in Microsoft.AspNet.Mvc.Facebook.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetCurrentUserFriendsAsync(Of TUserFriend As Class) ( _
client As FacebookClient _
) As Task(Of IList(Of TUserFriend))
'Usage
Dim client As FacebookClient
Dim returnValue As Task(Of IList(Of TUserFriend))
returnValue = client.GetCurrentUserFriendsAsync()
public static Task<IList<TUserFriend>> GetCurrentUserFriendsAsync<TUserFriend>(
this FacebookClient client
)
where TUserFriend : class
[ExtensionAttribute]
public:
generic<typename TUserFriend>
where TUserFriend : ref class
static Task<IList<TUserFriend>^>^ GetCurrentUserFriendsAsync(
FacebookClient^ client
)
static member GetCurrentUserFriendsAsync :
client:FacebookClient -> Task<IList<'TUserFriend>> when 'TUserFriend : not struct
JScript does not support generic types and methods.
Type Parameters
- TUserFriend
The type of the user friend.
Parameters
- client
Type: FacebookClient
The client.
Return Value
Type: System.Threading.Tasks.Task<IList<TUserFriend>>
A collection of friends.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type FacebookClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).
See Also
Reference
FacebookClientExtensions Class