[]
Initializes a new instance of the Category class with the specified key.
public Category(int key)
Public Sub New(key As Integer)
| Type | Name | Description |
|---|---|---|
| int | key | The int value which should be used as category key. |
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.
Initializes a new instance of the Category class with the specified key.
public Category(Guid key)
Public Sub New(key As Guid)
| Type | Name | Description |
|---|---|---|
| Guid | key | The Guid value which should be used as category key. |
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.
Creates the new Category object.
public Category()
Public Sub New()
Creates custom Category object with specified text.
public Category(string text)
Public Sub New(text As String)
| Type | Name | Description |
|---|---|---|
| string | text | The text of category. |
Special constructor for deserialization.
protected Category(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo. |
| StreamingContext | context | The context information. |