コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ActiveDirectoryUsers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToActiveDirectoryUsers(ActiveDirectoryUser activeDirectoryUser)
 {
     base.AddObject("ActiveDirectoryUsers", activeDirectoryUser);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ActiveDirectoryUser object.
 /// </summary>
 /// <param name="cn">Initial value of the cn property.</param>
 /// <param name="groupType">Initial value of the groupType property.</param>
 /// <param name="sAMAccountType">Initial value of the sAMAccountType property.</param>
 /// <param name="uSNChanged">Initial value of the uSNChanged property.</param>
 /// <param name="uSNCreated">Initial value of the uSNCreated property.</param>
 /// <param name="whenChanged">Initial value of the whenChanged property.</param>
 /// <param name="whenCreated">Initial value of the whenCreated property.</param>
 public static ActiveDirectoryUser CreateActiveDirectoryUser(global::System.String cn, global::System.Int32 groupType, global::System.Int32 sAMAccountType, global::System.Int64 uSNChanged, global::System.Int64 uSNCreated, global::System.DateTime whenChanged, global::System.DateTime whenCreated)
 {
     ActiveDirectoryUser activeDirectoryUser = new ActiveDirectoryUser();
     activeDirectoryUser.cn = cn;
     activeDirectoryUser.groupType = groupType;
     activeDirectoryUser.sAMAccountType = sAMAccountType;
     activeDirectoryUser.uSNChanged = uSNChanged;
     activeDirectoryUser.uSNCreated = uSNCreated;
     activeDirectoryUser.whenChanged = whenChanged;
     activeDirectoryUser.whenCreated = whenCreated;
     return activeDirectoryUser;
 }