SPUsageReceiverDefinitionCollection.Add 方法 (String, String)
将接收器定义添加到此集合中。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function Add ( _
receiverAssembly As String, _
receiverClass As String _
) As SPUsageReceiverDefinition
用法
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
)
参数
receiverAssembly
类型:System.String在其中定义接收方所添加的程序集。
receiverClass
类型:System.String正在添加接收方的类型的全名。
返回值
类型:Microsoft.SharePoint.Administration.SPUsageReceiverDefinition
SPUsageReceiverDefinition 是使用接收器定义,它已被添加。
备注
如果两个输入的参数为 null 或空字符串,将引发异常。
另请参阅
引用
SPUsageReceiverDefinitionCollection 类