TextRecord Class
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.
Create a Text Record class
public class TextRecord : Iot.Device.Ndef.NdefRecord
type TextRecord = class
inherit NdefRecord
Public Class TextRecord
Inherits NdefRecord
- Inheritance
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
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