Initializes a new instance of the Resource class.
Namespace:
DlhSoft.Windows.DataAssembly: 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, Entity..::.Initialization parentEntitySetInitialization, Entity..::.Initialization disposingInitialization ) |
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, _ parentEntitySetInitialization As Entity..::.Initialization, _ disposingInitialization As Entity..::.Initialization _ ) |
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.
- parentEntitySetInitialization
- Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Resource is set as owned by a parent entity.
- disposingInitialization
- Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Resource is disposed.