Windows Dev Center

ProximityMessage class

Represents a message that's received from a subscription.

Syntax


public ref class ProximityMessage sealed 

Members

The ProximityMessage class has these types of members:

Methods

The ProximityMessage class inherits methods from the Object class (C#/VB/C++).

Properties

The ProximityMessage class has these properties.

PropertyAccess typeDescription

Data

Read-onlyGets the binary data of the message.

DataAsString

Read-onlyGets the message data as text.

MessageType

Read-onlyGets the type of the message.

SubscriptionId

Read-onlyGets the subscription ID of the message.

 

Remarks

Messages published using the PublishMessage, PublishBinaryMessage, or PublishUriMessage methods and received by the MessageReceivedEventHandler passed to the SubscribeForMessage method are of type ProximityMessage.

Examples

No code example is currently available or this language may not be supported.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Proximity
Windows::Networking::Proximity [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

proximity

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Proximity
Windows::Networking::Proximity [C++]

Metadata

Windows.winmd

Capabilities

proximity
ID_CAP_PROXIMITY [Windows Phone]

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
Proximity and Tapping (JavaScript)
Proximity and Tapping (C#/VB/C++)
Samples
Proximity sample

 

 

Show:
© 2015 Microsoft