MediaRecord Class

Definition

Create a Media NDEF Record class

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

Constructors

MediaRecord(NdefRecord)

Create a Media Record from a NDEF Record

MediaRecord(String, ReadOnlySpan<Byte>)

Create a Media Record from the type and the payload

Properties

Header

The record header

(Inherited from NdefRecord)
IsTextType

True if the payload is text based

Length

The length of the NDEF Record

(Inherited from NdefRecord)
Payload

The record payload

(Inherited from NdefRecord)
PayloadType

Returns the Media Payload type

Methods

IsMediaRecord(NdefRecord)

Check if it's a valid Media Record

Serialize(Span<Byte>)

Serialize the NDEF Record

(Inherited from NdefRecord)
TryGetPayloadAsText(String)

Try to get our the encoded text

Applies to