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
receiverDefinition
Type: Microsoft.SharePoint.Administration.SPUsageReceiverDefinitionThe receiver definition to be added.
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