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(
	Object item,
	string contentMemberPath,
	string scheduleMemberPath,
	string costPerUsageMemberPath,
	string costPerHourMemberPath,
	Entity..::.Initialization completingParentManagerInitialization,
	Entity..::.Initialization insertedIntoParentCollectionInitialization,
	Entity..::.Initialization removingFromParentCollectionInitialization,
	Entity..::.Initialization disposingInitialization
)
Visual Basic (Declaration)
Protected Friend Sub New ( _
	item As Object, _
	contentMemberPath As String, _
	scheduleMemberPath As String, _
	costPerUsageMemberPath As String, _
	costPerHourMemberPath As String, _
	completingParentManagerInitialization As Entity..::.Initialization, _
	insertedIntoParentCollectionInitialization As Entity..::.Initialization, _
	removingFromParentCollectionInitialization As Entity..::.Initialization, _
	disposingInitialization As Entity..::.Initialization _
)

Parameters

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.
completingParentManagerInitialization
Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the initialization of the parent EntityManager is completed.
insertedIntoParentCollectionInitialization
Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Predecessor is inserted into the parent collection.
removingFromParentCollectionInitialization
Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Predecessor is removed from the parent collection.
disposingInitialization
Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Resource is disposed.

See Also