AllJoynBusObject.AddProducer(IAllJoynProducer) 方法

定义

重要

Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen Alliance 赞助)是一种开源发现和通信协议,适用于物联网 (IoT) 方案,例如开灯和关灯以及读取温度。 有关替代项(如 IoTivity LiteIoTivity),请参阅 iotivity.org 网站。

将要生成的附加接口添加到服务提供程序。

public:
 virtual void AddProducer(IAllJoynProducer ^ producer) = AddProducer;
void AddProducer(IAllJoynProducer const& producer);
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusObject has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
void AddProducer(IAllJoynProducer const& producer);
public void AddProducer(IAllJoynProducer producer);
[Windows.Foundation.Metadata.Deprecated("AllJoynBusObject has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public void AddProducer(IAllJoynProducer producer);
function addProducer(producer)
Public Sub AddProducer (producer As IAllJoynProducer)

参数

producer
IAllJoynProducer

要生成的接口。

属性

Windows 要求

应用功能
allJoyn

适用于