예제 #1
0
 void get_criticals()
 {
     try {
         Object[] oids = (Object[])_entry.Properties["pKICriticalExtensions"].Value;
         if (oids == null)
         {
             return;
         }
         foreach (Object oid in oids)
         {
             CriticalExtensions.Add(new Oid((String)oid));
         }
     } catch {
         CriticalExtensions.Add(new Oid((String)_entry.Properties["pKICriticalExtensions"].Value));
     }
 }
 void get_criticals()
 {
     try {
         Object[] oids = (Object[])_entry[ActiveDirectory.PropPkiCriticalExt];
         if (oids == null)
         {
             return;
         }
         foreach (Object oid in oids)
         {
             CriticalExtensions.Add(new Oid((String)oid));
         }
     } catch {
         CriticalExtensions.Add(new Oid((String)_entry[ActiveDirectory.PropPkiCriticalExt]));
     }
 }
예제 #3
0
 Boolean test_critical(String stroid)
 {
     return(CriticalExtensions.Cast <Oid>().Any(oid => oid.Value == stroid));
 }