FeedConsumer 构造函数

初始化 FeedConsumer 类的一个包含指定提供程序、ID 转换器和项转换器的新实例。

命名空间:  Microsoft.Synchronization.FeedSync
程序集:  Microsoft.Synchronization(在 Microsoft.Synchronization.dll 中)

语法

声明
Public Sub New ( _
    storeProvider As KnowledgeSyncProvider, _
    idConverter As FeedIdConverter, _
    itemConverter As FeedItemConverter _
)
用法
Dim storeProvider As KnowledgeSyncProvider
Dim idConverter As FeedIdConverter
Dim itemConverter As FeedItemConverter

Dim instance As New FeedConsumer(storeProvider, _
    idConverter, itemConverter)
public FeedConsumer(
    KnowledgeSyncProvider storeProvider,
    FeedIdConverter idConverter,
    FeedItemConverter itemConverter
)
public:
FeedConsumer(
    KnowledgeSyncProvider^ storeProvider, 
    FeedIdConverter^ idConverter, 
    FeedItemConverter^ itemConverter
)
new : 
        storeProvider:KnowledgeSyncProvider * 
        idConverter:FeedIdConverter * 
        itemConverter:FeedItemConverter -> FeedConsumer
public function FeedConsumer(
    storeProvider : KnowledgeSyncProvider, 
    idConverter : FeedIdConverter, 
    itemConverter : FeedItemConverter
)

参数

异常

异常 条件
ArgumentNullException

storeProvider、idConverter 或 itemConverter 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。

请参阅

参考

FeedConsumer类

FeedConsumer 成员

Microsoft.Synchronization.FeedSync 命名空间