Click or drag to resize
CoreCreatedOn Method (IItem)
Retrieve the created_on property of the item

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IProperty CreatedOn(
	this IItem parent
)

Parameters

parent
Type: Innovator.ClientIItem

Return Value

Type: IProperty

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IItem. 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).
Examples
C#
// If the part was created after 2016-01-01, put the name of the creator in the description
if (comp.CreatedOn().AsDateTime(DateTime.MaxValue) > new DateTime(2016, 1, 1))
{
    edits.Property("description").Set("Created by: " + comp.CreatedById().KeyedName().Value);
}
See Also