共用方式為


UserGroup Members

Include Protected Members
Include Inherited Members

Provides methods for working with users, role definitions, and groups.

The UserGroup type exposes the following members.

Constructors

  Name Description
Public method UserGroup Initializes a new instance of the UserGroup class.

Top

Properties

  Name Description
Public property AllowAutoRedirect (Inherited from HttpWebClientProtocol.)
Protected property CanRaiseEvents (Inherited from Component.)
Public property ClientCertificates (Inherited from HttpWebClientProtocol.)
Public property ConnectionGroupName (Inherited from WebClientProtocol.)
Public property Container (Inherited from Component.)
Public property CookieContainer (Inherited from HttpWebClientProtocol.)
Public property Credentials (Inherited from WebClientProtocol.)
Protected property DesignMode (Inherited from Component.)
Public property EnableDecompression (Inherited from HttpWebClientProtocol.)
Protected property Events (Inherited from Component.)
Public property PreAuthenticate (Inherited from WebClientProtocol.)
Public property Proxy (Inherited from HttpWebClientProtocol.)
Public property RequestEncoding (Inherited from WebClientProtocol.)
Public property Site (Inherited from Component.)
Public property SoapVersion (Inherited from SoapHttpClientProtocol.)
Public property Timeout (Inherited from WebClientProtocol.)
Public property UnsafeAuthenticatedConnectionSharing (Inherited from HttpWebClientProtocol.)
Public property Url (Inherited from WebClientProtocol.)
Public property UseDefaultCredentials (Inherited from WebClientProtocol.)
Public property UserAgent (Inherited from HttpWebClientProtocol.)

Top

Methods

  Name Description
Public method Abort (Inherited from WebClientProtocol.)
Public method AddGroup Adds a group to the current site collection.
Public method AddGroupToRole Adds the specified group to the specified role definition.
Public method AddRole Adds a role definition to the current site collection.
Public method AddRoleDef Adds a role definition to the current site collection.
Public method AddUserCollectionToGroup Adds the collection of users to the specified group.
Public method AddUserCollectionToRole Adds the collection of users to the specified role definition.
Public method AddUserToGroup Adds the user to the specified group.
Public method AddUserToRole Adds the user to the specified role definition.
Protected method BeginInvoke (Inherited from SoapHttpClientProtocol.)
Protected method CancelAsync (Inherited from HttpWebClientProtocol.)
Public method CreateObjRef (Inherited from MarshalByRefObject.)
Public method Discover (Inherited from SoapHttpClientProtocol.)
Public method Dispose() (Inherited from Component.)
Protected method Dispose(Boolean) (Inherited from Component.)
Protected method EndInvoke (Inherited from SoapHttpClientProtocol.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Component.)
Public method GetAllUserCollectionFromWeb Returns information about the collection of users for the current Web site.
Public method GetCurrentUserInfo
Public method GetGroupCollection Returns information about the specified groups in the current site collection.
Public method GetGroupCollectionFromRole Returns information about the collection of groups assigned to the specified role definition.
Public method GetGroupCollectionFromSite Returns information about the collection of groups for the current site collection.
Public method GetGroupCollectionFromUser Returns information about the collection of groups of which the specified user is a member.
Public method GetGroupCollectionFromWeb Returns information about the collection of groups for the current Web site.
Public method GetGroupInfo Returns information about the specified group.
Public method GetHashCode (Inherited from Object.)
Public method GetLifetimeService (Inherited from MarshalByRefObject.)
Protected method GetReaderForMessage (Inherited from SoapHttpClientProtocol.)
Public method GetRoleCollection Returns information about the specified collection of role definitions for the current Web site.
Public method GetRoleCollectionFromGroup Returns information about the collection of role definitions of which the specified group is a member.
Public method GetRoleCollectionFromUser Retrieves information about the collection of role definitions in which the specified user is a member.
Public method GetRoleCollectionFromWeb Returns information about the collection of groups for the current Web site.
Public method GetRoleInfo Returns information about the specified role definition.
Public method GetRolesAndPermissionsForCurrentUser Retrieves permissions and role definitions for the current user.
Public method GetRolesAndPermissionsForSite Retrieves permissions and role definitions for the specified Web site.
Protected method GetService (Inherited from Component.)
Public method GetType (Inherited from Object.)
Public method GetUserCollection Returns information about a collection of users based on the specified user names.
Public method GetUserCollectionFromGroup Returns information about the collection of users in the specified group.
Public method GetUserCollectionFromRole Returns information about the collection of users assigned to the specified role definition.
Public method GetUserCollectionFromSite Returns information about the collection of users for the current site collection.
Public method GetUserCollectionFromWeb Returns information about the collection of users for the current Web site.
Public method GetUserInfo Returns information about the specified user.
Public method GetUserLoginFromEmail Returns a user name based on the specified e-mail address.
Protected method GetWebRequest (Inherited from SoapHttpClientProtocol.)
Protected method GetWebResponse(WebRequest) (Inherited from HttpWebClientProtocol.)
Protected method GetWebResponse(WebRequest, IAsyncResult) (Inherited from HttpWebClientProtocol.)
Protected method GetWriterForMessage (Inherited from SoapHttpClientProtocol.)
Public method InitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected method Invoke (Inherited from SoapHttpClientProtocol.)
Protected method InvokeAsync(String, [], SendOrPostCallback) (Inherited from SoapHttpClientProtocol.)
Protected method InvokeAsync(String, [], SendOrPostCallback, Object) (Inherited from SoapHttpClientProtocol.)
Protected method MemberwiseClone() (Inherited from Object.)
Protected method MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public method RemoveGroup Removes the specified group from the current site collection.
Public method RemoveGroupFromRole Removes the specified group from the specified role definition.
Public method RemoveRole Removes the specified role definition from the current Web site.
Public method RemoveUserCollectionFromGroup Removes the users with the specified user names from the group.
Public method RemoveUserCollectionFromRole Removes the users with the specified user names from the specified role definition.
Public method RemoveUserCollectionFromSite Removes the specified users from the current site collection.
Public method RemoveUserFromGroup Removes the specified user from the specified group.
Public method RemoveUserFromRole Removes the specified user from the specified role definition.
Public method RemoveUserFromSite Removes the specified user from the current site collection.
Public method RemoveUserFromWeb Removes the specified user from the current Web site.
Public method ToString (Inherited from Component.)
Public method UpdateGroupInfo Updates information for the specified group.
Public method UpdateRoleDefInfo Updates information for the specified role definition.
Public method UpdateRoleInfo Updates information for the specified role definition.
Public method UpdateUserInfo Updates information for the specified user.

Top

Events

  Name Description
Public event Disposed (Inherited from Component.)

Top

See Also

Reference

UserGroup Class

UserGroup Web Service