[]
        
(Showing Draft Content)

C1.Schedule.Category.-ctor

Category Constructor

Category(int)

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

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

The int value which should be used as category 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.

Category(Guid)

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

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

The Guid value which should be used as category 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.

Category()

Creates the new Category object.

Declaration
public Category()

Category(string)

Creates custom Category object with specified text.

Declaration
public Category(string text)
Parameters
Type Name Description
string text

The text of category.

Category(SerializationInfo, StreamingContext)

Special constructor for deserialization.

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

The SerializationInfo.

StreamingContext context

The context information.