Code :-
Microsoft.Win32.RegistryKey mykey;
mykey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Office\15.0\Outlook\Preferences");
mykey.SetValue("MaximumAttachmentSize","51200");
mykey.Close();
how can Setvalue something like this :-
mykey.SetValue("MaximumAttachmentSize","REG_DWORD","51200");
mykey.SetValue(Name,Type,Data)