Table of Contents

Class UriRecord

Namespace
Iot.Device.Ndef
Assembly
Iot.Device.Ndef.dll

Create a Uri Record class

public class UriRecord : NdefRecord
Inheritance
UriRecord
Derived
Inherited Members

Constructors

UriRecord(NdefRecord)

Create a URI Record from a valid NDEF Record

public UriRecord(NdefRecord ndefRecord)

Parameters

ndefRecord NdefRecord

A valid NDEF Record

UriRecord(UriType, string)

Create a Uri Record from a Uri Type and a Uri

public UriRecord(UriType uriType, string uri)

Parameters

uriType UriType

The Uri type

uri string

A Uri

UriRecord(SpanByte)

Create a Uri Record from a span of bytes

public UriRecord(SpanByte record)

Parameters

record SpanByte

Record as a span of byte

Properties

FullUri

The full Uri

public string FullUri { get; }

Property Value

string

Uri

Uri to encode

public string Uri { get; set; }

Property Value

string

Remarks

The Uri should be URL encoded to be valid in most cases. Consider encoding it.

UriType

Uri Type

public UriType UriType { get; set; }

Property Value

UriType

Methods

IsUriRecord(NdefRecord)

True if this is a valid URI Record

public static bool IsUriRecord(NdefRecord ndefRecord)

Parameters

ndefRecord NdefRecord

A valid NDEF Record

Returns

bool