TextRecord Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for