AllJoynSession.GetFromServiceInfoAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetFromServiceInfoAsync(AllJoynServiceInfo) |
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 a session with the producer based on the specified service info. |
GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) |
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 a session with the producer based on the specified service info and bus attachment. |
GetFromServiceInfoAsync(AllJoynServiceInfo)
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 a session with the producer based on the specified service info.
public:
static IAsyncOperation<AllJoynSession ^> ^ GetFromServiceInfoAsync(AllJoynServiceInfo ^ serviceInfo);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo);
function getFromServiceInfoAsync(serviceInfo)
Public Shared Function GetFromServiceInfoAsync (serviceInfo As AllJoynServiceInfo) As IAsyncOperation(Of AllJoynSession)
Parameters
- serviceInfo
- AllJoynServiceInfo
The service info to acquire the correct session.
Returns
An AllJoyn object for the AllJoyn session based off the service info.
- Attributes
Windows requirements
App capabilities |
allJoyn
|
See also
Applies to
GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)
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 a session with the producer based on the specified service info and bus attachment.
public:
static IAsyncOperation<AllJoynSession ^> ^ GetFromServiceInfoAsync(AllJoynServiceInfo ^ serviceInfo, AllJoynBusAttachment ^ busAttachment);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo, AllJoynBusAttachment const& busAttachment);
/// [Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo const& serviceInfo, AllJoynBusAttachment const& busAttachment);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo, AllJoynBusAttachment busAttachment);
[Windows.Foundation.Metadata.Overload("GetFromServiceInfoAndBusAttachmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<AllJoynSession> GetFromServiceInfoAsync(AllJoynServiceInfo serviceInfo, AllJoynBusAttachment busAttachment);
function getFromServiceInfoAsync(serviceInfo, busAttachment)
Public Shared Function GetFromServiceInfoAsync (serviceInfo As AllJoynServiceInfo, busAttachment As AllJoynBusAttachment) As IAsyncOperation(Of AllJoynSession)
Parameters
- serviceInfo
- AllJoynServiceInfo
The service info to acquire the correct session.
- busAttachment
- AllJoynBusAttachment
The bus attachment to identify the AllJoyn session. If not specified, it is set to the result of AllJoynBusAttachment.GetDefault.
Returns
An AllJoyn object for the AllJoyn session based off the service info.
- Attributes
Windows requirements
App capabilities |
allJoyn
|