Share via


SPObjectModelTypeCollection.Add method

Add the type and its member to the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Add ( _
    type As Type, _
    member As String _
)
'Usage
Dim instance As SPObjectModelTypeCollection
Dim type As Type
Dim member As String

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

Parameters

  • member
    Type: System.String

    The case-sensitive name of a member of the type. For a set property, the name should be in the format "set_PropertyName". For a get property, the format should be "get_PropertyName". For a method the member should be the method name.

See also

Reference

SPObjectModelTypeCollection class

SPObjectModelTypeCollection members

Microsoft.SharePoint.Administration namespace