Removes the specified user from the domain/library.
Visual Basic (declaration) |
---|
Public Function RemoveUserFromDomainMembership( _ |
C# (declaration) |
---|
public XmlNode RemoveUserFromDomainMembership( |
Visual Basic Example |
---|
Public Sub RemoveUserFromDomainMembership() Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxxxxxxx" Const IR_DomainName As String = "Accounting" Const IR_UserName As String = "JoeD" Dim IR_Obj As InfoRouter.srv Dim xmlResponse As System.Xml.XmlElement Try IR_Obj = New InfoRouter.srv xmlResponse = IR_Obj.RemoveUserFromDomainMembership(IRAuthenticationTicket, _ IR_DomainName, _ IR_UserName) If xmlResponse.GetAttribute("success") = "true" Then Console.WriteLine("The user removed from the domain memberships") Else Console.WriteLine("The User 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 |