IFilterValues.SetConsumerParameters method
呼叫以指示哪些參數篩選消費者它支援。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Sub SetConsumerParameters ( _
parameters As ReadOnlyCollection(Of ConsumerParameter) _
)
'用途
Dim instance As IFilterValues
Dim parameters As ReadOnlyCollection(Of ConsumerParameter)
instance.SetConsumerParameters(parameters)
void SetConsumerParameters(
ReadOnlyCollection<ConsumerParameter> parameters
)
參數
parameters
Type: System.Collections.ObjectModel.ReadOnlyCollection<ConsumerParameter>消費者ConsumerParameter物件的唯讀集合。
備註
在WebPart連線設定會使用這項資訊,以允許使用者選取要篩選特定篩選器提供者使用哪一個消費者參數。這個方法也會設定連線設定,以避免不相容的提供者和消費者的連接。
因為ConsumerParameter物件是唯讀的集合,它們可以加入或刪除從WebPartPage類別中的參數但不是更新個別。
請參閱
參照
Microsoft.SharePoint.WebPartPages namespace
ReadOnlyCollection