# C1.Schedule.Contact.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_Contact__ctor_" data-uid="C1.Schedule.Contact.#ctor*">Contact Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_Contact__ctor_" data-uid="C1.Schedule.Contact.#ctor*"></a>
<h4 id="C1_Schedule_Contact__ctor_System_Int32_" data-uid="C1.Schedule.Contact.#ctor(System.Int32)">Contact(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Contact.html">Contact</a> class with the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Contact(int key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value which should be used as contact key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Schedule_Contact__ctor_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
</div>


<a id="C1_Schedule_Contact__ctor_" data-uid="C1.Schedule.Contact.#ctor*"></a>
<h4 id="C1_Schedule_Contact__ctor_System_Guid_" data-uid="C1.Schedule.Contact.#ctor(System.Guid)">Contact(Guid)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Contact.html">Contact</a> class with the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Contact(Guid key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As Guid)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a> value which should be used as contact key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Schedule_Contact__ctor_System_Guid__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
</div>


<a id="C1_Schedule_Contact__ctor_" data-uid="C1.Schedule.Contact.#ctor*"></a>
<h4 id="C1_Schedule_Contact__ctor" data-uid="C1.Schedule.Contact.#ctor">Contact()</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Contact.html">Contact</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Contact()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Schedule_Contact__ctor_" data-uid="C1.Schedule.Contact.#ctor*"></a>
<h4 id="C1_Schedule_Contact__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="C1.Schedule.Contact.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">Contact(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Special constructor for deserialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Contact(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The context information.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
