SPUserResourceCollection.Add method (SPUserResource)

Adds the specified user resource to the collection.

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

Syntax

'Declaration
Public Sub Add ( _
    resource As SPUserResource _
)
'Usage
Dim instance As SPUserResourceCollection
Dim resource As SPUserResource

instance.Add(resource)
public void Add(
    SPUserResource resource
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

resource is null .

Remarks

This method sets the Parent property to the Parent property of resource and marks the collection as modified.

See also

Reference

SPUserResourceCollection class

SPUserResourceCollection members

Add overload

Microsoft.SharePoint namespace