[]
Initializes a new instance of the Contact class with the specified key.
public Contact(int key)
Public Sub New(key As Integer)
| Type | Name | Description |
|---|---|---|
| int | key | The int value which should be used as contact 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 Contact class with the specified key.
public Contact(Guid key)
Public Sub New(key As Guid)
| Type | Name | Description |
|---|---|---|
| Guid | key | The Guid value which should be used as contact 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 Contact object.
public Contact()
Public Sub New()
Special constructor for deserialization.
protected Contact(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. |