Removes the specified user group from the specified domain/library.
Visual Basic (declaration) |
---|
Public Function RemoveUserGroupFromDomainMembership( _ |
C# (declaration) |
---|
public XmlNode RemoveUserGroupFromDomainMembership( |
Visual Basic Example |
---|
Public Sub RemoveUserGroupFromDomainMembership() Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxx" Const IR_DomainName As String = "Accounting" Const IR_UserGroupName As String = "Employees" Dim IR_Obj As InfoRouter.srv Dim xmlResponse As System.Xml.XmlElement Try IR_Obj = New InfoRouter.srv xmlResponse = IR_Obj.RemoveUserGroupFromDomainMembership( _ IRAuthenticationTicket, _ IR_DomainName, _ IR_UserGroupName) If xmlResponse.GetAttribute("success") = "true" Then Console.WriteLine("The user group removed from the domain memberships") Else Console.WriteLine("The User group cannot be removed from the domain memberships.") Console.WriteLine("server response:" & xmlResponse.GetAttribute("error")) End If xmlResponse = Nothing Catch ex As Exception Console.WriteLine("error:" & ex.Message) Finally IR_Obj = Nothing End Try End Sub |