using System;
using System.Collections.Generic;
using System.Text;
using smo = Microsoft.SqlServer.Management.Smo;

namespace UsingServerProperties
{
    class Program
    {
        static void Main(string[] args)
        {
         smo.Server C5 = 
          new smo.Server("CANOPUS5");
         Console.WriteLine("InstanceName " +
          C5.InstanceName);
         Console.WriteLine(
          "InstanceName " + 
          C5.Properties["InstanceName"].Value
          );
        }
    }
}
