MediaRecord 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 Media NDEF Record class
public class MediaRecord : Iot.Device.Ndef.NdefRecord
type MediaRecord = class
inherit NdefRecord
Public Class MediaRecord
Inherits NdefRecord
- Inheritance
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
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