LiteralExtensionsToLiteral Method (DateTimeOffset, INodeFactory) |
Creates a new Date Time typed literal.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static ILiteralNode ToLiteral(
this DateTimeOffset dt,
INodeFactory factory
)
<ExtensionAttribute>
Public Shared Function ToLiteral (
dt As DateTimeOffset,
factory As INodeFactory
) As ILiteralNode
Parameters
- dt
- Type: SystemDateTimeOffset
Date Time. - factory
- Type: VDS.RDFINodeFactory
Node Factory to use for Node creation.
Return Value
Type:
ILiteralNodeLiteral representing the date time.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTimeOffset. 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 See Also