共用方式為


SPUsageReceiverDefinitionCollection.Add method (String, String)

會接收定義新增到此集合。

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

Syntax

'宣告
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
    Type: System.String

    受話方新增為所定義之組件。

  • receiverClass
    Type: System.String

    受話方新增類型的完整名稱。

傳回值

Type: Microsoft.SharePoint.Administration.SPUsageReceiverDefinition
SPUsageReceiverDefinition 是已新增的使用狀況接收器定義。

備註

如果任一 input 的參數是 null 或空字串,會擲回例外狀況。

請參閱

參照

SPUsageReceiverDefinitionCollection class

SPUsageReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint.Administration namespace