[]
Initializes a new instance of the Contact class with the specified key.
public Contact(int key)
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)
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()
Special constructor for deserialization.
protected Contact(SerializationInfo info, StreamingContext context)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo. |
StreamingContext | context | The context information. |