Share via


SPUsageReceiverDefinitionCollection.Add method (Type)

Adds a receiver definition to this collection.

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

Syntax

'Declaration
Public Function Add ( _
    receiverType As Type _
) As SPUsageReceiverDefinition
'Usage
Dim instance As SPUsageReceiverDefinitionCollection
Dim receiverType As Type
Dim returnValue As SPUsageReceiverDefinition

returnValue = instance.Add(receiverType)
public SPUsageReceiverDefinition Add(
    Type receiverType
)

Parameters

  • receiverType
    Type: System.Type

    Type of usage receiver to be added.

Return value

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

Remarks

An exception is thrown if the receiverType object is null.

See also

Reference

SPUsageReceiverDefinitionCollection class

SPUsageReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint.Administration namespace