LanguageBaseItem Class

Represents a member of the SDP LanguageBaseAttributeIdList, Attribute which provides for multi-language strings in a record.

Definition

Namespace: InTheHand.Net.Bluetooth.AttributeIds
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public sealed class LanguageBaseItem
Inheritance
Object    LanguageBaseItem

Remarks

“The LanguageBaseAttributeIdList attribute is a list in which each member contains a language identifier, a character encoding identifier, and a base attribute ID for each of the natural languages used in the service record.”

Constructors

LanguageBaseItem(Int16, Int16, ServiceAttributeId) Initialize a new instance of the LanguageBaseItem class.
LanguageBaseItem(Int16, Int16, Int16) Initialize a new instance of the LanguageBaseItem class.
LanguageBaseItem(String, Int16, ServiceAttributeId) Initialize a new instance of the LanguageBaseItem class.
LanguageBaseItem(String, UInt16, ServiceAttributeId) Initialize a new instance of the LanguageBaseItem class.
LanguageBaseItem(UInt16, UInt16, ServiceAttributeId) Initialize a new instance of the LanguageBaseItem class.
LanguageBaseItem(UInt16, UInt16, UInt16) Initialize a new instance of the LanguageBaseItem class.

Properties

AttributeIdBase Gets the base Attribute Id for this language.
EncodingId Get the IETF Charset identifier for this language.
EncodingIdAsInt16 Get the IETF Charset identifier for this language, as an Int16.
NaturalLanguage Gets the value of the Natural Language field of the entry.
NaturalLanguageAsInt16 Gets the value of the Natural Language field of the entry, as a UInt16.
NaturalLanguageAsUInt16 Gets the value of the Natural Language field of the entry, as a UInt16.

Methods

CreateElementSequenceFromList Create a data element for the LanguageBaseAttributeIdList attribute from the list of LanguageBaseItem
CreateEnglishUtf8PrimaryLanguageItem Create a LanguageBaseItem instance for a primary language of English and a string encoding of UTF-8.
Equals
(Inherited from Object)
GetEncoding Gets an Encoding appropriate for this language base item.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
ParseListFromElementSequence Gets the list of LanguageBaseItem items in the service record.
ToString
(Inherited from Object)

Fields

PrimaryLanguageBaseAttributeId The primary language is specified to have base attribute ID 0x0100.
Utf8EncodingId The Id for the UTF-8 encoding.

See Also