ToUri Method ToUri() Interprets the NDEF data as a URI record. C# public Uri ToUri() Returns System.Uri The message as a Uniform Resource Identifier (URI). Exceptions Type Condition System.InvalidOperationException Throw if Type is not Uri.