ContentByQueryWebPart.CommonViewFields Property

Gets or sets the CommonViewFields property for this ContentByQueryWebPart object.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property CommonViewFields As String
    Get
    Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As String

value = instance.CommonViewFields

instance.CommonViewFields = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string CommonViewFields { get; set; }

Property Value

Type: System.String
Additional fields for use by the ContentQueryWebPart object.

Remarks

CommonViewFields are additional fields that you can request when retrieving data. You can format the fields as either "internalName" or "Guid", separated by semicolons. You can specify the field types by placing a comma after the internal name or the GUID.

Examples

An example of CommonViewFields property format:

"Title,Text;ID,Counter;Editor,User."

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart