ListFieldIterator.ExcludeFields Property

Gets or sets the fields that are not rendered.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property ExcludeFields As String
    Get
    Set
'Usage
Dim instance As ListFieldIterator
Dim value As String

value = instance.ExcludeFields

instance.ExcludeFields = value
public string ExcludeFields { get; set; }

Property Value

Type: System.String
A String that represents the fields that are not rendered by the ListFieldIterator control.

Remarks

Use the InternalName or Title property to identify each field, and separate the fields with a semicolon and pound sign (;#). For example, the value of this property might be "Orginator;#HomePhoneNumber;#Book Author".

Warning

A field is excluded if either its InternalName or Title is included. For this reason, when you create custom fields, you should not only keep each Title unique and each Internal Name unique; you should also ensure that no Title is the same as any other field's Internal Name. Otherwise, you might exclude two fields when you want to exclude only one.

See Also

Reference

ListFieldIterator Class

ListFieldIterator Members

Microsoft.SharePoint.WebControls Namespace