2.4

Table Of Contents
VMware, Inc. 43
Chapter 4 Lab Manager API Method Reference
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
ConfigurationSetPublicPrivate
Usethiscalltosetthestateofaconfigurationto“public”or“private.”Ifthe
configurationstateispublic,othersareabletoaccessthisconfiguration.Ifthe
configurationisprivate,onlyitsownercanviewit.
Syntax
ConfigurationSetPublicPrivate(10, false);
Arguments
Response
none
Sample Code: C#
try
{
//
//** LabManagerSoap is the name of the web reference in Visual Studio
//
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
//** Create login
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Get Configuration object
Table 4-11. Arguments
Field Data Type Description
configurationID int Configurationidentifier.
isPublic boolean true=public,false=private.