AttributeIdLookupGetName(ServiceAttributeId, Type) Method

Retrieves the name of the SDP Attribute ID with the given value in the specified Attribute ID class sets.

Definition

Namespace: InTheHand.Net.Bluetooth.AttributeIds
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static string GetName(
	ServiceAttributeId id,
	Type[] attributeIdDefiningClasses
)

Parameters

id  ServiceAttributeId
The Attribute Id as an ServiceAttributeId
attributeIdDefiningClasses  Type
The set of classes defining Attribute IDs for the service classed contained in the record containing this attribute id.

Return Value

String
A string containing the name of the Attribute ID whose numerical value is id, or a null reference (Nothing in Visual Basic) if no such constant is found.

Remarks

Each particular service (ObexPushProfile, SerialPortProfile) etc defines its own SDP record content and the Attribute IDs are defined locally in each, and thus with values overlapping with other service specifications. Therefore for each profile we must define the set of Attribute IDs used, this is done by creating a class for each with the IDs defined as const member fields.

See Also