/// <summary> /// Create a new ManagementCredential object. /// </summary> /// <param name="username">Initial value of the Username property.</param> /// <param name="encryptedPassword">Initial value of the EncryptedPassword property.</param> /// <param name="id">Initial value of the Id property.</param> /// <param name="tid">Initial value of the Tid property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="modified">Initial value of the Modified property.</param> /// <param name="password">Initial value of the Password property.</param> public static ManagementCredential CreateManagementCredential(global::System.String username, global::System.String encryptedPassword, global::System.Int64 id, global::System.String tid, global::System.String name, global::System.String createdBy, global::System.String modifiedBy, global::System.DateTimeOffset created, global::System.DateTimeOffset modified, global::System.String password) { ManagementCredential managementCredential = new ManagementCredential(); managementCredential.Username = username; managementCredential.EncryptedPassword = encryptedPassword; managementCredential.Id = id; managementCredential.Tid = tid; managementCredential.Name = name; managementCredential.CreatedBy = createdBy; managementCredential.ModifiedBy = modifiedBy; managementCredential.Created = created; managementCredential.Modified = modified; managementCredential.Password = password; return managementCredential; }
/// <summary> /// Deprecated Method for adding a new object to the ManagementCredentials EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToManagementCredentials(ManagementCredential managementCredential) { base.AddObject("ManagementCredentials", managementCredential); }