AllJoynBusAttachment.GetDefault 方法

定义

重要

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

获取应用清单定义的默认 AllJoynBusAttachment

public:
 static AllJoynBusAttachment ^ GetDefault();
 static AllJoynBusAttachment GetDefault();
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 static AllJoynBusAttachment GetDefault();
public static AllJoynBusAttachment GetDefault();
[Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static AllJoynBusAttachment GetDefault();
function getDefault()
Public Shared Function GetDefault () As AllJoynBusAttachment

返回

默认总线附件。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
allJoyn

注解

此方法是线程安全的,每次调用它都会得到保证以返回相同的总线附件实例。

适用于