コード例 #1
0
 public DistinguishedName(string distinguishedName)
 {
     cachedDN   = distinguishedName;
     components = new List <DNComponent>();
     foreach (KeyValuePair <string, string> kvp in Win32LDAP.ParseDN(distinguishedName))
     {
         components.Add(new DNComponent(kvp.Key, kvp.Value, true));
     }
 }
コード例 #2
0
    private void setup(string key, string value, bool isEscaped)
    {
        Type = key;

        if (isEscaped)
        {
            EscapedValue   = value;
            UnescapedValue = Win32LDAP.UnquoteRDN(value);
        }
        else
        {
            EscapedValue   = Win32LDAP.QuoteRDN(value);
            UnescapedValue = value;
        }

        WholeComponent = Type + "=" + EscapedValue;
    }