Opc.Ua.Configuration.PseudoComServer.GetDescription C# (CSharp) Method

GetDescription() private static method

Returns the description
private static GetDescription ( System.Guid server ) : string
server System.Guid
return string
		private static string GetDescription(Guid server)
		{
			string clsidKey = String.Format(@"CLSID\{{{0}}}", server.ToString().ToUpper());
		
			RegistryKey key = Registry.ClassesRoot.OpenSubKey(clsidKey);
			
			if (key != null)
			{
				try
				{
					return key.GetValue(null) as string;
				}
				finally
				{
					key.Close();
				}
			}

			return String.Empty;
		}