What is the property of a COM+ component "Remote Server Name"

Asked

Viewed 41 times

2

I’m having a problem finding the name of the property of COM+ so I can change the content of it, by my researches I need to know the correct name of the value of the parameter to be able to change it, in case it is the Name of Remote Server

            COMAdminCatalogCollection applications;
            COMAdminCatalog catalog;

            catalog = new COMAdminCatalog();
            applications = (COMAdminCatalogCollection)catalog.GetCollection("Applications");

            applications.Populate();

            string x = "Nome Sistema";
            dynamic servidor = "Caminho Servidor";

            foreach (COMAdminCatalogObject application in applications)
            {
                if (application.Name == x)
                {
                    application.Value["Nome do parametro que estou atras"] = servidor;
                }
             }

1 answer

2


According to Microsoft documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms686107(v=vs.85). aspx#applicationproxyservername

What you need is Applicationproxyservername

COMAdminCatalogCollection applications;
COMAdminCatalog catalog;

catalog = new COMAdminCatalog();
applications = (COMAdminCatalogCollection)catalog.GetCollection("Applications");

applications.Populate();

string x = "COM+ Explorer";
dynamic servidor = "localhost";

foreach (COMAdminCatalogObject application in applications)
{
    if (application.Name == x)
    {
        application.Value["ApplicationProxyServerName"] = servidor;
    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.