title: How to set connection time out when establishing context - PrincipalContext
body: <pre><code>using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, Domain, UserName, Password))
              {
                  UserPrincipal U = new UserPrincipal(ctx);
                  U.GivenName = strFirstName;
                  U.Surname = strLastName;
                  U.EmailAddress = strEmail;
  
                  PrincipalSearcher srch = new PrincipalSearcher(U);
  
                  foreach (var principal in srch.FindAll())
                  {
                      var p = (UserPrincipal)principal;
                      if (!User.Any(x =&gt; x.Email == p.EmailAddress))
                      {
                          MyUserDataset.UserRow User = User.NewUserRow();
                          User.FirstName = p.GivenName;
                          User.LastName = p.Surname;
                          User.UserName = p.SamAccountName;
                          User.Email = p.EmailAddress;
                          User.AddUserRow(User);
                      }
                  }
                  User.AcceptChanges();
              }
  </code></pre>
  
  <p>I'm using the PrincipalContext class above to establish a connection to the target directory and specify credentials for performing operations against the directory.</p>
  
  <p>Does any one know how i can also specify the connection time out in the PrincipalContext Constructor?, i'm running into connection time out issues &amp; i was wondering if i can control after how long the connection can time out.</p>