Export (0) Print
Expand All

4.1.4.2.13 GetCanonicalName

 procedure GetCanonicalName(
  obj: DSName, extended: boolean): unicodestring

Informative summary of behavior: The GetCanonicalName function constructs the canonical name of an object by walking up its ancestors to the NC root.

  
 result: unicodestring
  
  
 if obj = GetDomainNC(obj) then
   return DomainDNSNameFromDomain(obj)
 endif
  
  
 /* Recurse into parent, obtain non-extended canonical name. */
 result := GetCanonicalName(obj!parent, false)
 if extended = true then
   result := result + "\n"
 else
   result := result + "/"
 endif
  
  
 result := result + obj!name
 return result
Show:
© 2016 Microsoft