Microsoft.Protocols.TestSuites.MS_OXWSFOLD.MS_OXWSFOLDAdapter.SwitchUser C# (CSharp) Method

SwitchUser() public method

Switch the current user to the new one, with the identity of the new user to communicate with Exchange Web Service.
public SwitchUser ( string userName, string userPassword, string userDomain ) : void
userName string The name of a user
userPassword string The password of a user
userDomain string The domain, in which a user is
return void
        public void SwitchUser(string userName, string userPassword, string userDomain)
        {
            this.Initialize(this.Site);
            this.exchangeServiceBinding.Credentials = new System.Net.NetworkCredential(userName, userPassword, userDomain);
        }