다음을 통해 공유


SPUsageReceiverDefinitionCollection.Add Method (Type)

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 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