Class GraphContent
Represents and HTTP entity body that carries a serialization of an RDF graph.
Inheritance
System.Object
System.Net.Http.HttpContent
GraphContent
Implements
System.IDisposable
Inherited Members
System.Net.Http.HttpContent.CopyToAsync(System.IO.Stream)
System.Net.Http.HttpContent.CopyToAsync(System.IO.Stream, System.Net.TransportContext)
System.Net.Http.HttpContent.CreateContentReadStreamAsync()
System.Net.Http.HttpContent.Dispose()
System.Net.Http.HttpContent.LoadIntoBufferAsync()
System.Net.Http.HttpContent.LoadIntoBufferAsync(long)
System.Net.Http.HttpContent.ReadAsByteArrayAsync()
System.Net.Http.HttpContent.ReadAsStreamAsync()
System.Net.Http.HttpContent.ReadAsStringAsync()
System.Net.Http.HttpContent.Headers
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class GraphContent : HttpContent, IDisposable
Constructors
| Improve this Doc View SourceGraphContent(IGraph, string)
Initializes a new instance of GraphContent carrying the specified RDF graph in the specified serialization.
Declaration
public GraphContent(IGraph graph, string contentType)
Parameters
Type | Name | Description |
---|---|---|
IGraph | graph | The graph to be used for the payload content. |
string | contentType | The MIME type of the payload. |
GraphContent(IGraph, IRdfWriter)
Initializes a new instance of GraphContent.
Declaration
public GraphContent(IGraph graph, IRdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IGraph | graph | The graph to be used for the payload content. |
IRdfWriter | writer | The writer to use to serialize the graph. |
Properties
| Improve this Doc View SourceContentLengthRequired
Get or set whether the server requires Content-Length to be set.
Declaration
public bool ContentLengthRequired { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Encoding
Get or set the text encoding to use when writing RDF data.
Declaration
public Encoding Encoding { get; set; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
Methods
| Improve this Doc View SourceDispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
System.Net.Http.HttpContent.Dispose(bool)
|
Improve this Doc
View Source
SerializeToStreamAsync(Stream, TransportContext)
Declaration
protected override Task SerializeToStreamAsync(Stream stream, TransportContext context)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
System.Net.TransportContext | context |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
System.Net.Http.HttpContent.SerializeToStreamAsync(System.IO.Stream, System.Net.TransportContext)
|
Improve this Doc
View Source
TryComputeLength(out long)
Declaration
protected override bool TryComputeLength(out long length)
Parameters
Type | Name | Description |
---|---|---|
long | length |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Net.Http.HttpContent.TryComputeLength(out long)
Implements
System.IDisposable