Dela via


DnssdServiceInstance.TextAttributes Property

Definition

Gets the attributes of this service instance, as a list of [name, value] pairs of strings. Attributes can be inspected by service clients to determine additional information about a service instance.

The specific attribute names and values used by a service are determined by the designer of the service. For example, a service instance for a multiplayer game might have attributes describing which game map the instance is using, or the game difficulty level of the instance. Different service instances would be active for different maps or difficulty levels, and a client using the game service could use the attribute values to determine which game server instance to connect to for the player's preferred map or difficulty level.

public:
 property IMap<Platform::String ^, Platform::String ^> ^ TextAttributes { IMap<Platform::String ^, Platform::String ^> ^ get(); };
IMap<winrt::hstring, winrt::hstring const&> TextAttributes();
public IDictionary<string,string> TextAttributes { get; }
var iMap = dnssdServiceInstance.textAttributes;
Public ReadOnly Property TextAttributes As IDictionary(Of String, String)

Property Value

IMap<String,String>

IDictionary<String,String>

IMap<Platform::String,Platform::String>

IMap<winrt::hstring,winrt::hstring>

A collection of attribute [name,value] pairs.

Applies to