Initializes a new instance of the Resource class.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)

Syntax

C#
protected internal Resource(
	Assignment parentAssignment,
	Object item,
	string contentMemberPath,
	string scheduleMemberPath,
	string costPerUsageMemberPath,
	string costPerHourMemberPath
)
Visual Basic (Declaration)
Protected Friend Sub New ( _
	parentAssignment As Assignment, _
	item As Object, _
	contentMemberPath As String, _
	scheduleMemberPath As String, _
	costPerUsageMemberPath As String, _
	costPerHourMemberPath As String _
)

Parameters

parentAssignment
Type: DlhSoft.Windows.Data..::.Assignment
The parent assignment that owns this Resource.
item
Type: System..::.Object
Resource item to be wrapped by the Resource.
contentMemberPath
Type: System..::.String
Path to an Object value on the source resource item to serve as the resource content, or null to indicate that the content is not provided by the source resource item.
scheduleMemberPath
Type: System..::.String
Path to a Schedule value on the source resource item to serve as the resource schedule, or null to indicate that the schedule is not provided by the source resource item.
costPerUsageMemberPath
Type: System..::.String
Path to a Double value on the source resource item to serve as the resource cost pe usage, or null to indicate that the cost per usage is not provided by the source resource item.
costPerHourMemberPath
Type: System..::.String
Path to a Double value on the source resource item to serve as the resource cost pe hour, or null to indicate that the cost per hour is not provided by the source resource item.

See Also