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

2

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

            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;
                }
             }
    
asked by anonymous 22.01.2018 / 15:27

1 answer

2

According to the Microsoft documentation link

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;
    }
}
    
22.01.2018 / 15:45