Condividi tramite


SPUserResourceCollection.Add Method (SPUserResource)

Adds the specified user resource to the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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