共用方式為


FieldRef Element (DeploymentManifest - SPFieldCollection)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Represents field data to display in a Windows SharePoint Services 3.0 list (SPList).

DECLARATION
<xs:element name="FieldRef" 
        type="SPFieldLink" 
        minOccurs="0" maxOccurs="unbounded" 
/>

USAGE
<Fields>
        <FieldRef>
                <Field />
                        Name="xs:string"
                        ID="Guid"
                        Customization="xs:string"
                        Default="xs:string"
                        ColName="xs:string"
                        ColName2="xs:string"
                        RowOrdinal="xs:int"
                        RowOrdinal2="xs:int"
                        Hidden="TRUEFALSE"
                        Required="TRUEFALSE"
                        Explicit="xs:string"
                        ShowInNewForm="xs:string"
                        ShowInEditForm="xs:string"
                        DisplayName="xs:string"
                        Node="xs:string"
        <FieldRef />
</Fields>

Type

SPField

Attributes

Attribute

Type

Description

Name

xs:string

Optional. Name of the field in which to display the data.

ID

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the field in which to display the data.

Customization

xs:string

Optional.

Default

xs:string

Optional. Default value for data to display in the field.

ColName

xs:string

Optional. Display name of the column representing the field.

ColName2

xs:string

Optional.

RowOrdinal

xs:int

Optional.

RowOrdinal2

xs:int

Optional.

Hidden

TRUEFALSE Simple Type (DeploymentManifest)

Optional. Specifies whether the field value is hidden in the user interface. TRUE if the value is hidden. The default is FALSE.

Required

TRUEFALSE Simple Type (DeploymentManifest)

Optional. Specifies whether the field requires a value (cannot be null). TRUE if the field value is required. The default is FALSE.

Explicit

xs:string

Optional.

ShowInNewForm

xs:string

Optional.

ShowInEditForm

xs:string

Optional.

DisplayName

xs:string

Optional.

Node

xs:string

Optional.

Child Elements

Field Element (DeploymentManifest - SPFieldCollection)

FieldRef Element (DeploymentManifest - SPFieldCollection)

Parent Elements

Fields Element (DeploymentManifest - SPList)

Remarks

This element can contain instances of itself, and can therefore be either a parent or child of itself.

See Also

Reference

SPFieldLink

Concepts

DeploymentManifest Schema