Table of Contents

Class TextRecord

Namespace
Iot.Device.Ndef
Assembly
Iot.Device.Ndef.dll

Create a Text Record class

public class TextRecord : NdefRecord
Inheritance
TextRecord
Inherited Members

Constructors

TextRecord(NdefRecord)

Create a Text Record from a NDEF Record

public TextRecord(NdefRecord ndefRecord)

Parameters

ndefRecord NdefRecord

A valid NDEF Record

TextRecord(SpanByte)

Create a Text Record from a span of bytes

public TextRecord(SpanByte record)

Parameters

record SpanByte

The record as a span of bytes

TextRecord(string, string, Encoding)

Create a Text Record based on its characteristics

public TextRecord(string text, string language, Encoding encoding)

Parameters

text string

The text payload

language string

The language of the text

encoding Encoding

The Encoding type. Encoding

Properties

Encoding

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

public Encoding Encoding { get; set; }

Property Value

Encoding

LanguageCode

A valid language code, should be less than 63 characters

public string LanguageCode { get; set; }

Property Value

string

Text

The text payload

public string Text { get; set; }

Property Value

string

Methods

IsTextRecord(NdefRecord)

Check if it's a valid Text Record

public static bool IsTextRecord(NdefRecord ndefRecord)

Parameters

ndefRecord NdefRecord

The NDEF Record to check

Returns

bool

True if it's a valid Text Record