架构中的 SPField 自定义属性

发布于 2024-08-10 14:15:59 字数 241 浏览 3 评论 0原文

我正在尝试确定是否可以将自定义属性存储在 SPField 的架构 XML 中。

如果您查看 SharePoint 中“Field”元素的 .xsd,就会发现有大量属性。属性列表中的最后一个是。该元素的目的是允许其扩展。这显然让我相信可以存储自定义属性。但是,我找不到这方面的任何文档。

任何人有这方面的经验,或看过有关该主题的文件说是或否?

I'm trying to decide whether it is possible to store custom attributes in a SPField's schema XML.

If you look at the .xsd for the 'Field' element in SharePoint, there are a slew of attributes. The last one in the attribute list is <xs:anyAttribute>. This elements purpose is to allow it be extended. This obviously leads me to believe it is possible to store custom attributes. However, I cannot find any documentation on this.

Anyone have any experience with this, or seen documentation saying yay or nay on the subject?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界等同你 2024-08-17 14:15:59

您是对的,您可以为 SPField 设置自定义属性,

<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="Property1">ConfigurableURL</Field>
    <Field Name="Property2">Value2</Field>
    <PropertySchema>
      <Fields>
        <Field Name="CustomAttributeOne" DisplayName="CustomAttributeOneDisplay" Type="Text"></Field>
      </Fields>
    </PropertySchema>
  </FieldType>
</FieldTypes>

您可以在以下链接中找到有关该主题的更多信息

Link1

Link2

Link3

You are right you can have custom Attributes to the SPField,

<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="Property1">ConfigurableURL</Field>
    <Field Name="Property2">Value2</Field>
    <PropertySchema>
      <Fields>
        <Field Name="CustomAttributeOne" DisplayName="CustomAttributeOneDisplay" Type="Text"></Field>
      </Fields>
    </PropertySchema>
  </FieldType>
</FieldTypes>

You can find more information about the subject at the below links

Link1

Link2

Link3

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文