Click or drag to resize

LiteralExtensions.ToLiteralDate Method (DateTime, INodeFactory)

Creates a new Date typed literal.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static ILiteralNode ToLiteralDate(
	this DateTime dt,
	INodeFactory factory
)

Parameters

dt
Type: System.DateTime
Date Time.
factory
Type: VDS.RDF.INodeFactory
Node Factory to use for Node creation.

Return Value

Type: ILiteralNode

[Missing <returns> documentation for "M:VDS.RDF.LiteralExtensions.ToLiteralDate(System.DateTime,VDS.RDF.INodeFactory)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the Factory argument is null.
See Also