Share via


DataContent.ContainsData Property

Definition

Gets a value indicating whether the content contains data rather than only being a reference to data.

public:
 property bool ContainsData { bool get(); };
[System.Text.Json.Serialization.JsonIgnore]
public bool ContainsData { get; }
[<System.Text.Json.Serialization.JsonIgnore>]
member this.ContainsData : bool
Public ReadOnly Property ContainsData As Boolean

Property Value

Attributes

Remarks

If the instance is constructed from a ReadOnlyMemory<T> or from a data URI, this property will return true, as the instance actually contains all of the data it represents. If, however, the instance was constructed from another form of URI, one that simply references where the data can be found but doesn't actually contain the data, this property will return false.

Applies to