3.0

Table Of Contents
VMware, Inc. 43
Chapter 4 Lab Manager API Method Reference
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
ConfigurationSetPublicPrivate
Usethiscalltosetthestateofaconfigurationtopublicorprivate.Iftheconfiguration
stateispublic,allLab Managerusersinallorganizationscanaccessthisconfiguration
(readonly).Iftheconfigurationisprivate,onlyitsownerandadministratorscanview
it.
Syntax
ConfigurationSetPublicPrivate(10, false);
Arguments
Response
Noresponse.
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";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
Field Data Type Description
configurationID int Configurationidentifier.
isPublic boolean true=public,false=private.