SPUsageReceiverDefinitionCollection.Add method (String, String)
Adds a receiver definition to this collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function Add ( _
receiverAssembly As String, _
receiverClass As String _
) As SPUsageReceiverDefinition
'Usage
Dim instance As SPUsageReceiverDefinitionCollection
Dim receiverAssembly As String
Dim receiverClass As String
Dim returnValue As SPUsageReceiverDefinition
returnValue = instance.Add(receiverAssembly, _
receiverClass)
public SPUsageReceiverDefinition Add(
string receiverAssembly,
string receiverClass
)
Parameters
receiverAssembly
Type: System.StringThe assembly in which the receiver being added is defined.
receiverClass
Type: System.StringThe full name of the type of the receiver being added.
Return value
Type: Microsoft.SharePoint.Administration.SPUsageReceiverDefinition
SPUsageReceiverDefinition is the usage receiver definition which has been added.
Remarks
An exception is thrown if either input parameter is null or an empty string.
See also
Reference
SPUsageReceiverDefinitionCollection class