Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
resource
Type: Microsoft.SharePoint.SPUserResourceThe user resource to add to the collection.
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