To use this function add it to the class library file named PluginVCVirtualMachineService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCVirtualMachineService.ts
Public Function: EnableCopyAndPasteVMRC
publicEnableCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine):boolean{
letblnReturn:boolean=this.ToggleCopyAndPasteVMRC(objVcVirtualMachine,"FALSE");
returnblnReturn;
}TypeScriptPublic Function: DisableCopyAndPasteVMRC
publicDisableCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine):boolean{
letblnReturn:boolean=this.ToggleCopyAndPasteVMRC(objVcVirtualMachine,"TRUE");
returnblnReturn;
}TypeScriptPrivate Function: ToggleCopyAndPasteVMRC
privateToggleCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine,strValue:"TRUE"|"FALSE"):boolean{
letobjProperties:Properties=newProperties();
objProperties.put("isolation.tools.copy.disable",strValue);
objProperties.put("isolation.tools.paste.disable",strValue);
objProperties.put("isolation.tools.dnd.disable",strValue)
letblnReturn:boolean=this.ReconfigureAdvancedParameters(objVcVirtualMachine,objProperties);
returnblnReturn;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
