DNSManagement.EventLogging.EventLogging C# (CSharp) Method

EventLogging() public method

.ctor
public EventLogging ( string host, string username, string password ) : System
host string
username string
password string
return System
        public EventLogging(string host, string username, string password)
        {
            ConnectionOptions connoptions = new ConnectionOptions();
            connoptions.Username = username;
            connoptions.Password = password;
            connoptions.Impersonation = ImpersonationLevel.Impersonate;

            m_scope = new ManagementScope(@"\\" + host + @"\root\cimv2", connoptions);
            m_scope.Connect();
        }