Skip to main content

Windows Dev Center

ProximityDevice.MaxMessageBytes | maxMessageBytes property

Gets the maximum size of a published message that this proximity device supports.

Syntax


var maxMessageBytes = proximityDevice.maxMessageBytes;

public uint MaxMessageBytes { get; }

Public ReadOnly Property MaxMessageBytes As UInteger

public:
property unsigned int MaxMessageBytes { 
   unsigned int get();
}

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The maximum size of a published message that this proximity device supports.

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

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

proximity
ID_CAP_PROXIMITY [Windows Phone]

See also

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