ContentByQueryWebPart.DataMappingViewFields Property

Gets or sets the view fields for data mapping.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

public string DataMappingViewFields { get; set; }

Property Value

Type: System.String
Returns String.

A string that represents the fields that are requested by data mapping when retrieving data. The fields can be either "internalName" or "GUID", and they are separated by semicolons. You can specify the field types using a comma after the "internalName" or the "GUID" of the field.