System.Runtime.InteropServices.RegistrationServices.RegisterTypeForComClients C# (CSharp) Method

RegisterTypeForComClients() private method

private RegisterTypeForComClients ( Type type, RegistrationClassContext classContext, RegistrationConnectionType flags ) : int
type System.Type
classContext RegistrationClassContext
flags RegistrationConnectionType
return int
		public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags)
		{
			throw new NotImplementedException ();
		}
		

Same methods

RegistrationServices::RegisterTypeForComClients ( Type type, System.Guid &g ) : void

Usage Example

コード例 #1
0
        static void Main(string[] args)
        {
            Debug.WriteLine("M:{0}/U:{1} - Main()", Thread.CurrentThread.ManagedThreadId, PInvoke.GetCurrentThreadId());

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //if (args.Length > 0)
            //    MessageBox.Show(args[0]);

            if (args.Length == 1 && args[0] == "-Embedding")
            {
                MessageBox.Show(args[0]);
                return;
            }

            RegistrationServices rs = new RegistrationServices();
            int cookie = rs.RegisterTypeForComClients(typeof(Class1), RegistrationClassContext.LocalServer, RegistrationConnectionType.MultipleUse);

            try
            {
                Application.Run(new Form1());
            }
            catch
            {
            }

            rs.UnregisterTypeForComClients(cookie);
        }
All Usage Examples Of System.Runtime.InteropServices.RegistrationServices::RegisterTypeForComClients