ServiceRecordGetAttributeById(ServiceAttributeId, LanguageBaseItem) Method

Returns the attribute with the given ID and natural language.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public ServiceAttribute GetAttributeById(
	ServiceAttributeId id,
	LanguageBaseItem language
)

Parameters

id  ServiceAttributeId
The id of the service attribute to locate, as a ServiceAttributeId.
language  LanguageBaseItem
Which multi-language version of the string attribute to locate.

Return Value

ServiceAttribute
A ServiceAttribute holding the attribute with the specified ID and language. Is never .

Exceptions

KeyNotFoundException There is no attribute with the given Id with the given language base in the record.

See Also