共用方式為


SPObjectModelTypeCollection.Add Method

Add the type and its member to the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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