다음을 통해 공유


ContentByQueryWebPart.DataColumnRenames Property

Column to rename after the data has been retrieved.

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

Syntax

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

value = instance.DataColumnRenames

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

Property Value

Type: System.String

Remarks

Column renames are separated by semicolons and are in the format "originalName,newName."

A new Column name must not be present in the data or the rename is not performed,

Examples

This example is valid:

"originalName,newName."

This example is not valid:

"originalName1,newName1;originalName2,newName2."

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart