SPUsageReceiverDefinitionCollection.Add method (Type)
會接收定義新增到此集合。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Add ( _
receiverType As Type _
) As SPUsageReceiverDefinition
'用途
Dim instance As SPUsageReceiverDefinitionCollection
Dim receiverType As Type
Dim returnValue As SPUsageReceiverDefinition
returnValue = instance.Add(receiverType)
public SPUsageReceiverDefinition Add(
Type receiverType
)
參數
receiverType
Type: System.Type使用收件者新增的類型。
傳回值
Type: Microsoft.SharePoint.Administration.SPUsageReceiverDefinition
SPUsageReceiverDefinition 是接收器定義所新增的物件。
備註
如果receiverType物件是 null,則會擲回例外狀況。
請參閱
參照
SPUsageReceiverDefinitionCollection class