FacebookClientExtensions.GetCurrentUserStatusesAsync<TStatus> Method

Gets the current user statuses.

Namespace:  Microsoft.AspNet.Mvc.Facebook.Client
Assembly:  Microsoft.AspNet.Mvc.Facebook (in Microsoft.AspNet.Mvc.Facebook.dll)


<ExtensionAttribute> _
Public Shared Function GetCurrentUserStatusesAsync(Of TStatus As Class) ( _
    client As FacebookClient _
) As Task(Of IList(Of TStatus))
Dim client As FacebookClient 
Dim returnValue As Task(Of IList(Of TStatus))

returnValue = client.GetCurrentUserStatusesAsync()
public static Task<IList<TStatus>> GetCurrentUserStatusesAsync<TStatus>(
    this FacebookClient client
where TStatus : class
generic<typename TStatus>
where TStatus : ref class 
static Task<IList<TStatus>^>^ GetCurrentUserStatusesAsync(
    FacebookClient^ client
static member GetCurrentUserStatusesAsync : 
        client:FacebookClient -> Task<IList<'TStatus>>  when 'TStatus : not struct
JScript does not support generic types and methods.

Type Parameters

  • TStatus
    The type of the status.


  • client
    Type: FacebookClient
    The client.

Return Value

Type: System.Threading.Tasks.Task<IList<TStatus>>
A collection of statuses.

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


FacebookClientExtensions Class

Microsoft.AspNet.Mvc.Facebook.Client Namespace