Ejemplo n.º 1
0
        /// <summary>
        /// Create a new SecurityGroupMembership object.
        /// </summary>
        /// <param name="userName">Initial value of the UserName property.</param>
        /// <param name="groupId">Initial value of the GroupId property.</param>
        public static SecurityGroupMembership CreateSecurityGroupMembership(global::System.String userName, global::System.Byte groupId)
        {
            SecurityGroupMembership securityGroupMembership = new SecurityGroupMembership();

            securityGroupMembership.UserName = userName;
            securityGroupMembership.GroupId  = groupId;
            return(securityGroupMembership);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SecurityGroupMemberships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSecurityGroupMemberships(SecurityGroupMembership securityGroupMembership)
 {
     base.AddObject("SecurityGroupMemberships", securityGroupMembership);
 }