Share via


SPFeaturePropertyCollection 类

代表SPFeatureProperty对象的集合。

继承层次结构

System.Object
  Microsoft.SharePoint.SPFeaturePropertyCollection

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public NotInheritable Class SPFeaturePropertyCollection _
    Implements IEnumerable
用法
Dim instance As SPFeaturePropertyCollection
public sealed class SPFeaturePropertyCollection : IEnumerable

备注

使用SPFeatureMicrosoft.SharePoint.Administration.SPFeatureDefinition类的Properties属性获取属性的集合的功能或功能定义。要为功能创建一个属性,使用SPFeatureProperty构造函数来创建该属性,并使用Add方法将属性添加到功能属性的集合。

使用索引器从集合中返回单个属性。例如,如果集合已分配给名为 myProperties 的变量,则可使用 myProperties [index] 用 C# 或 Visual Basic.NET,其中index是集合中的功能的索引号或功能的名称中的 myProperties (index)。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SPFeaturePropertyCollection 成员

Microsoft.SharePoint 命名空间