UserGroup.UpdateGroupInfo - Méthode
Met à jour les informations pour le groupe spécifié.
Espace de noms : WebSvcUserGroup
Assembly : STSSOAP (dans STSSOAP.dll)
Syntaxe
'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateGroupInfo", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateGroupInfo ( _
oldGroupName As String, _
groupName As String, _
ownerIdentifier As String, _
ownerType As String, _
description As String _
)
'Utilisation
Dim instance As UserGroup
Dim oldGroupName As String
Dim groupName As String
Dim ownerIdentifier As String
Dim ownerType As String
Dim description As String
instance.UpdateGroupInfo(oldGroupName, _
groupName, ownerIdentifier, ownerType, _
description)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateGroupInfo", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateGroupInfo(
string oldGroupName,
string groupName,
string ownerIdentifier,
string ownerType,
string description
)
Paramètres
oldGroupName
Type : System.StringChaîne qui contient l'ancien nom du groupe.
groupName
Type : System.StringChaîne qui contient le nouveau nom du groupe.
ownerIdentifier
Type : System.StringChaîne qui contient le nom d'utilisateur (DOMAIN\User_Alias) pour le propriétaire du groupe.
ownerType
Type : System.StringChaîne qui spécifie le type de propriétaire, qui peut être user ou group.
description
Type : System.StringChaîne qui contient la description pour le groupe.
Exemples
L'exemple de code suivant modifie le nom, le propriétaire et la description pour le groupe spécifié.
Dim usrgrpService As New Web_Reference_Folder_Name.UserGroup()
usrgrpService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim oldName As String = "Old_Group_Name"
Dim newName As String = "New_Group_Name"
Dim newOwner As String = "DOMAIN\User_Alias"
Dim newDescription As String = "Description"
usrgrpService.UpdateGroupInfo(oldName, newName, newOwner, "user", newDescription)
Web_Reference_Folder_Name.UserGroup usrgrpService = new Web_Reference_Folder_Name.UserGroup();
usrgrpService.Credentials= System.Net.CredentialCache.DefaultCredentials;
string oldName = "Old_Group_Name";
string newName = "New_Group_Name";
string newOwner = "DOMAIN\\User_Alias";
string newDescription = "Description";
usrgrpService.UpdateGroupInfo(oldName, newName, newOwner, "user", newDescription);