[]
        
(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)
Public Sub New(key As Integer)
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)
Public Sub New(key As Guid)
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()
Public Sub New()

Category(string)

Creates custom Category object with specified text.

Declaration
public Category(string text)
Public Sub New(text As String)
Parameters
Type Name Description
string text

The text of category.

Category(SerializationInfo, StreamingContext)

Special constructor for deserialization.

Declaration
protected Category(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo.

StreamingContext context

The context information.