SPGroup methods

The SPGroup type exposes the following members.

Methods

  Name Description
Public method AddUser(SPUser) Adds the specified user to the group.
Public method AddUser(String, String, String, String) Adds the user who is specified by a particular user name, email address, display name, and notes to the group.
Public method ClearDistributionGroupErrorMessage Clears the distribution group error message.
Public method CreateDistributionGroup Creates a distribution list for the group.
Public method DeleteDistributionGroup Deletes the distribution list that is associated with the group.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDistributionGroupArchives Returns the lists that serve as archives for messages that are sent to the distribution lists for this group.
Protected method GetField Reserved for internal use. (Inherited from SPPrincipal.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method InitMember Initializes the member. (Overrides SPPrincipal.InitMember().)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveUser Removes the specified user from the group.
Public method RenameDistributionGroup Renames the distribution list that is associated with the group.
Public method ResynchronizeDistributionGroup Updates the member list and properties of the distribution list that is associated with the group to match the current values of the group.
Public method SetDistributionGroupArchives Sets the lists that serve as distribution group archives for the group.
Protected method SetField Sets the field for the user or group. (Inherited from SPPrincipal.)
Public method ToString Returns the name of the group. (Overrides Object.ToString().)
Public method Update Updates the database with changes that have been made to the properties of the group.
Public method UpdateDistributionGroupStatus Queries the Directory Management Service for the status of a pending operation, if any, for the group's distribution list, and if an operation has just completed, resynchronizes data if necessary.

Top

See also

Reference

SPGroup class

Microsoft.SharePoint namespace