Share via


RemoveFieldRef-Element (ContentType)

Gilt für: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online-| SharePoint Server 2013

Gibt einen Spaltenverweis an, der im übergeordneten Inhaltstyp enthalten ist, aber aus diesem Inhaltstyp entfernt werden soll.

Sie müssen nur das ID-Attribut des RemoveFieldRef-Elements angeben. SharePoint Foundation ignoriert alle anderen Attribute dieses Elements.

Definition

<RemoveFieldRef
  Aggregation="sum" | "count" | "average" | "min" | "max" | "merge" | "plaintext" | "first" | "last"
  Customization="Text"
  DefaultValue="Text"
  Description="Text"
  DisplayName="Text"
  Format="Text"
  Filterable="TRUE" | "FALSE"
  FilterableNoRecurrence="TRUE" | "FALSE"
  FromBaseType="TRUE" | "FALSE"
  Hidden="TRUE" | "FALSE" | "orResource"
  ID="Text"
  Locked="TRUE" | "FALSE"
  Name="Text"
  Node="Text"
  NumLines="Integer"
  PIAttribute="Text"
  PITarget="Text"
  PrimaryPIAttribute="Text"
  ReadOnly="TRUE" | "FALSE"
  ReadOnlyClient="TRUE" | "FALSE"
  Required="TRUE" | "FALSE"
  Sealed="TRUE" | "FALSE"
  ShowInDisplayForm="TRUE" | "FALSE"
  ShowInEditForm="TRUE" | "FALSE"
  ShowInFileDlg="TRUE" | "FALSE"
  ShowInListSettings="TRUE" | "FALSE"
  ShowInNewForm="TRUE" | "FALSE"
  Sortable="TRUE" | "FALSE"
  PrimaryPITarget="Text"
/>

Elemente und Attribute

In den folgenden Abschnitten werden Attribute, untergeordnete und übergeordnete Elemente erläutert.

Attribute

Attribut

Beschreibung

**ID**

Erforderlich **Text**. Gibt die Feld-ID der Spalte an, die aus dem Inhaltstyp entfernt werden soll.

Untergeordnete Elemente

Keine.

Übergeordnete Elemente

FieldRefs

Vorkommen

Minimum: 0

Maximum: Unbegrenzt

HinwBemerkungeneise

Wenn das RemoveFieldRef-Element eine Spalte angibt, die nicht im übergeordneten Inhaltstyp enthalten ist, ignoriert SharePoint Foundation das Element.

Beispiel

Das folgende Beispiel zeigt RemoveFieldRef-Elemente , die mehrere Spalten angeben, die aus einem Inhaltstyp entfernt werden sollen.

    <FieldRefs>
      <RemoveFieldRef ID="{67df98f4-9dec-48ff-a553-29bece9c5bf4}" Name="Attachments" /> <!-- Attachments -->
      <RemoveFieldRef ID="{f1e020bc-ba26-443f-bf2f-b68715017bbc}" Name="WorkflowVersion" /> <!-- WorkflowVersion -->
      <RemoveFieldRef ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" Name="LinkTitleNoMenu" /> <!-- LinkTitleNoMenu -->
      <RemoveFieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle" /> <!-- LinkTitle -->
      <RemoveFieldRef ID="{ae069f25-3ac2-4256-b9c3-15dbc15da0e0}" Name="GUID" /> <!-- GUID -->
      <RemoveFieldRef ID="{de8beacf-5505-47cd-80a6-aa44e7ffe2f4}" Name="WorkflowInstanceID" /> <!-- WorkflowInstanceID -->
    </FieldRefs>

Siehe auch