Share via


SPUsageReceiverDefinitionCollection.Add method (SPUsageReceiverDefinition)

Adds a receiver definition to this collection.

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

Syntax

'Declaration
Public Overrides Function Add ( _
    receiverDefinition As SPUsageReceiverDefinition _
) As SPUsageReceiverDefinition
'Usage
Dim instance As SPUsageReceiverDefinitionCollection
Dim receiverDefinition As SPUsageReceiverDefinition
Dim returnValue As SPUsageReceiverDefinition

returnValue = instance.Add(receiverDefinition)
public override SPUsageReceiverDefinition Add(
    SPUsageReceiverDefinition receiverDefinition
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPUsageReceiverDefinition
SPUsageReceiverDefinition is the added receiver definition.

Remarks

An exception is thrown if the input parameter is null.

See also

Reference

SPUsageReceiverDefinitionCollection class

SPUsageReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint.Administration namespace