Share via


FacebookQueryHelper.GetFields Method

Gets the appropriate "fields" query parameter for the Facebook Graph API based on the public properties of the model type.

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

Syntax

'Declaration
Public Shared Function GetFields ( _
    modelType As Type _
) As String
'Usage
Dim modelType As Type 
Dim returnValue As String 

returnValue = FacebookQueryHelper.GetFields(modelType)
public static string GetFields(
    Type modelType
)
public:
static String^ GetFields(
    Type^ modelType
)
static member GetFields : 
        modelType:Type -> string
public static function GetFields(
    modelType : Type
) : String

Parameters

Return Value

Type: System.String
The "fields" query parameter.

See Also

Reference

FacebookQueryHelper Class

Microsoft.AspNet.Mvc.Facebook.Client Namespace