다음을 통해 공유


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

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