Esempio n. 1
0
    public void DoImpersonate()
    {
        Impersonate impersonate = null;

        try {
            impersonate = Impersonate.ImpersonateValidUser("yukaritester", "WXP0148D51", "123456");
            if (impersonate != null)
            {
                Console.WriteLine("Impersonated.");
            }
        } finally {
            if (impersonate != null)
            {
                impersonate.Dispose();
            }
        }
    }