RawDataFromUri Method

Creates a new RawData instance from an absolute Uri, which references external data.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static RawData FromUri(
	Uri uri,
	string? mediaType = null
)

Parameters

uri  Uri
An absolute Uri.
mediaType  String  (Optional)
The Internet Media Type ("MIME type") of the data the uri points to, or null.

Return Value

RawData
The newly created RawData instance.

Exceptions

ArgumentNullExceptionuri is null.
ArgumentExceptionuri is not an absolute Uri.

See Also