SPUsageReceiverDefinitionCollection.Add Method (SPUsageReceiverDefinition)
Adds a receiver definition to this collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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