define variable domain as IDomain no-undo.
domain = service:NewDomain("MyDomain"). /* Set properties and optionally add elements to collections */ . . . service:CreateDomain(domain). . . . domain = service:GetDomain("MyDomain"). /* Set properties */ service:UpdateDomain(domain). . . . service:DeleteDomain("MyDomain"). |
define variable domainSet as IDomainSet no-undo.
domainSet = service:GetDomains(). domain = service:NewDomain("SomeDomain"). /* Set properties and optionally add elements to collections */ . . . domainSet:Add(domain). . . . domain = domainSet:Find("XDomain") domain:IsEnabled = true. domain = domainSet:Find("ZDomain") domainMap:Remove(domain). service:UpdateDomains(domains). |