AllJoynBusAttachment.GetDefault Method

Definition

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Gets the default AllJoynBusAttachment as defined by the app's manifest.

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

Returns

The default bus attachment.

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
allJoyn

Remarks

This method is thread-safe, and each call of it is guarenteed to return the same bus attachment instance.

Applies to