コード例 #1
0
 string PrintDomainLabel(DomainKey key)
 {
     if (HasDomainAmbigousName != null)
     {
         if (HasDomainAmbigousName(key))
         {
             return(key.ToString());
         }
     }
     else if (Report.HasDomainAmbigiousName(key))
     {
         return(key.ToString());
     }
     if (!string.IsNullOrEmpty(key.DomainName))
     {
         return(key.DomainName);
     }
     if (!string.IsNullOrEmpty(key.DomainNetBIOS))
     {
         return("NetBIOS: " + key.DomainNetBIOS);
     }
     if (!string.IsNullOrEmpty(key.DomainSID))
     {
         return("SID: " + key.DomainSID);
     }
     return("Error please contact the support");
 }
コード例 #2
0
 string PrintDomainLabel(DomainKey key)
 {
     if (HasDomainAmbigousName != null)
     {
         if (HasDomainAmbigousName(key))
         {
             return(key.ToString());
         }
     }
     else if (Report.HasDomainAmbigiousName(key))
     {
         return(key.ToString());
     }
     return(key.DomainName);
 }