AllJoynSession.GetFromServiceInfoAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetFromServiceInfoAsync(AllJoynServiceInfo) |
Importante I tipi nello spazio dei nomi Windows.Devices.AllJoyn sono deprecati e potrebbero non essere disponibili nelle versioni future di Windows. AllJoyn, sponsorizzato da AllSeen Alliance, è stato un protocollo di individuazione e comunicazione open source per scenari IoT (Internet of Things), ad esempio l'accensione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web di iotivity.org . Ottiene una sessione con il producer in base alle informazioni sul servizio specificate. |
GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) |
Importante I tipi nello spazio dei nomi Windows.Devices.AllJoyn sono deprecati e potrebbero non essere disponibili nelle versioni future di Windows. AllJoyn, sponsorizzato da AllSeen Alliance, è stato un protocollo di individuazione e comunicazione open source per scenari IoT (Internet of Things), ad esempio l'accensione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web di iotivity.org . Ottiene una sessione con il producer in base alle informazioni di servizio e all'allegato del bus specificati. |
GetFromServiceInfoAsync(AllJoynServiceInfo)
Importante
I tipi nello spazio dei nomi Windows.Devices.AllJoyn sono deprecati e potrebbero non essere disponibili nelle versioni future di Windows. AllJoyn, sponsorizzato da AllSeen Alliance, è stato un protocollo di individuazione e comunicazione open source per scenari IoT (Internet of Things), ad esempio l'accensione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web di iotivity.org .
Ottiene una sessione con il producer in base alle informazioni sul servizio specificate.
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)
Parametri
- serviceInfo
- AllJoynServiceInfo
Informazioni sul servizio per acquisire la sessione corretta.
Restituisce
Oggetto AllJoyn per la sessione AllJoyn in base alle informazioni sul servizio.
- Attributi
Requisiti Windows
Funzionalità dell'app |
allJoyn
|
Vedi anche
Si applica a
GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)
Importante
I tipi nello spazio dei nomi Windows.Devices.AllJoyn sono deprecati e potrebbero non essere disponibili nelle versioni future di Windows. AllJoyn, sponsorizzato da AllSeen Alliance, è stato un protocollo di individuazione e comunicazione open source per scenari IoT (Internet of Things), ad esempio l'accensione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web di iotivity.org .
Ottiene una sessione con il producer in base alle informazioni di servizio e all'allegato del bus specificati.
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)
Parametri
- serviceInfo
- AllJoynServiceInfo
Informazioni sul servizio per acquisire la sessione corretta.
- busAttachment
- AllJoynBusAttachment
Allegato del bus per identificare la sessione AllJoyn. Se non specificato, viene impostato sul risultato di AllJoynBusAttachment.GetDefault.
Restituisce
Oggetto AllJoyn per la sessione AllJoyn in base alle informazioni sul servizio.
- Attributi
Requisiti Windows
Funzionalità dell'app |
allJoyn
|