public static void ExecuteMethod_AddProcessObjectToContainerAndStoreBoth(ProcessContainer ownerProcessContainer, Process process) { if(ownerProcessContainer.ProcessIDs == null) ownerProcessContainer.ProcessIDs = new List<string>(); ownerProcessContainer.ProcessIDs.Add(process.ID); ownerProcessContainer.StoreInformation(); process.StoreInformation(); }
public static ProcessContainer GetTarget_OwnerProcessContainer() { var processContainer = ProcessContainer.RetrieveFromOwnerContent(InformationContext.CurrentOwner, "default"); if (processContainer == null) { processContainer = new ProcessContainer(); processContainer.SetLocationAsOwnerContent(InformationContext.CurrentOwner, "default"); } return processContainer; }
partial static void CreateCustomDemo(ref ProcessContainer customDemoObject);