SPObjectModelTypeCollection.Add 方法

向集合中添加的类型和它的成员。

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

语法

声明
Public Sub Add ( _
    type As Type, _
    member As String _
)
用法
Dim instance As SPObjectModelTypeCollection
Dim type As Type
Dim member As String

instance.Add(type, member)
public void Add(
    Type type,
    string member
)

参数

  • member
    类型:System.String

    该类型的成员的名称区分大小写。对于set属性,名称应为"set_PropertyName"的格式。对于get属性,格式应为"get_PropertyName"。方法的成员应该是方法名称。

另请参阅

引用

SPObjectModelTypeCollection 类

SPObjectModelTypeCollection 成员

Microsoft.SharePoint.Administration 命名空间