Edit

Share via


TextRecord Class

Definition

Create a Text Record class

public class TextRecord : Iot.Device.Ndef.NdefRecord
type TextRecord = class
    inherit NdefRecord
Public Class TextRecord
Inherits NdefRecord
Inheritance
TextRecord

Constructors

TextRecord(NdefRecord)

Create a Text Record from a NDEF Record

TextRecord(ReadOnlySpan<Byte>)

Create a Text Record from a span of bytes

TextRecord(String, String, Encoding)

Create a Text Record based on its characteristics

Properties

Encoding

The Encoding type used for the text, only UTF8 and Unicode are valid

Header

The record header

(Inherited from NdefRecord)
LanguageCode

A valid language code, should be less than 63 characters

Length

The length of the NDEF Record

(Inherited from NdefRecord)
Payload

The record payload

(Inherited from NdefRecord)
Text

The text payload

Methods

IsTextRecord(NdefRecord)

Check if it's a valid Text Record

Serialize(Span<Byte>)

Serialize the NDEF Record

(Inherited from NdefRecord)

Applies to