ServiceRecordParserLazyUrlCreation Property

Gets or sets whether any URL elements will be converted to Uri instances at parse time, or left as raw byte arrays.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public bool LazyUrlCreation { get; set; }

Property Value

Boolean

Remarks

This is useful when the URL element is badly formatted and thus the parser will reject the record, setting this property to true will allow the parse to complete without attempting to decode the URL value.

When true the value is stored as a array of bytes, when false it is stored as a String; however in earlier versions it was stored as Uri, and since there was often invalid content on devices (e.g. iPhone) this often failed.

See Also