Edit

Share via


TextRecord Constructors

Definition

Overloads

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

TextRecord(NdefRecord)

Create a Text Record from a NDEF Record

public TextRecord (Iot.Device.Ndef.NdefRecord ndefRecord);
new Iot.Device.Ndef.TextRecord : Iot.Device.Ndef.NdefRecord -> Iot.Device.Ndef.TextRecord
Public Sub New (ndefRecord As NdefRecord)

Parameters

ndefRecord
NdefRecord

A valid NDEF Record

Applies to

TextRecord(ReadOnlySpan<Byte>)

Create a Text Record from a span of bytes

public TextRecord (ReadOnlySpan<byte> record);
new Iot.Device.Ndef.TextRecord : ReadOnlySpan<byte> -> Iot.Device.Ndef.TextRecord
Public Sub New (record As ReadOnlySpan(Of Byte))

Parameters

record
ReadOnlySpan<Byte>

The record as a span of bytes

Applies to

TextRecord(String, String, Encoding)

Create a Text Record based on its characteristics

public TextRecord (string text, string language, System.Text.Encoding encoding);
new Iot.Device.Ndef.TextRecord : string * string * System.Text.Encoding -> Iot.Device.Ndef.TextRecord
Public Sub New (text As String, language As String, encoding As Encoding)

Parameters

text
String

The text payload

language
String

The language of the text

encoding
Encoding

The Encoding type. Encoding

Applies to