[]
        
(Showing Draft Content)

C1.Schedule.Resource.-ctor

Resource Constructor

Resource(int)

Initializes a new instance of the Resource class with the specified key.

Declaration
public Resource(int key)
Parameters
Type Name Description
int key

The int value which should be used as resource key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Resource(Guid)

Initializes a new instance of the Resource class with the specified key.

Declaration
public Resource(Guid key)
Parameters
Type Name Description
Guid key

The Guid value which should be used as resource key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Resource()

Creates the new Resource object.

Declaration
public Resource()

Resource(SerializationInfo, StreamingContext)

Special constructor for deserialization.

Declaration
protected Resource(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo.

StreamingContext context

The context information.