MCNearbyServiceAdvertiser.DiscoveryInfo Property
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.
A small dictionary of data available to aide peer discovery and negotiation.
public virtual Foundation.NSDictionary DiscoveryInfo { [Foundation.Export("discoveryInfo")] get; }
member this.DiscoveryInfo : Foundation.NSDictionary
Property Value
This will contain the data passed in to the C:MultipeerConnectivity.MCNearbyServiceAdvertiser(MultipeerConnectivity.MCPeerID,Foundation.NSDictionary,string) constructor.
- Attributes
Remarks
The total size of keys and data in this dictionary should be less than ~400 bytes so that it can fit into a single Bluetooth data packet.
The dictionary should map string
s to string
s. Each key-value pair must be no more than 255 bytes with the equals sign inserted between them (i.e., System.Text.ASCIIEncoding.Unicode.GetByteCount(String.Format("{0}={1}",key,value)) <= 255
). Keys may not contain equals signs.
The dictionary is advertised as a Bonjour TXT record (see RFC 6763, Section 6).