IAllJoynProducer.SetBusObject(AllJoynBusObject) 方法

定义

重要

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

设置添加生成者时要使用的指定总线对象。

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

参数

busObject
AllJoynBusObject

所需的总线对象。

属性

Windows 要求

应用功能
allJoyn

适用于

另请参阅