MediaRecord 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
MediaRecord(NdefRecord) |
Create a Media Record from a NDEF Record |
MediaRecord(String, ReadOnlySpan<Byte>) |
Create a Media Record from the type and the payload |
MediaRecord(NdefRecord)
Create a Media Record from a NDEF Record
public MediaRecord (Iot.Device.Ndef.NdefRecord ndefRecord);
new Iot.Device.Ndef.MediaRecord : Iot.Device.Ndef.NdefRecord -> Iot.Device.Ndef.MediaRecord
Public Sub New (ndefRecord As NdefRecord)
Parameters
- ndefRecord
- NdefRecord
A valid NDEF Record
Applies to
MediaRecord(String, ReadOnlySpan<Byte>)
Create a Media Record from the type and the payload
public MediaRecord (string payloadType, ReadOnlySpan<byte> payload);
new Iot.Device.Ndef.MediaRecord : string * ReadOnlySpan<byte> -> Iot.Device.Ndef.MediaRecord
Public Sub New (payloadType As String, payload As ReadOnlySpan(Of Byte))
Parameters
- payloadType
- String
The payload type
- payload
- ReadOnlySpan<Byte>
The byte payload