public override String ToString() { sbyte[] data = m_sequence.getEncoding(s_encoder); System.Text.StringBuilder buf = new System.Text.StringBuilder(data.Length); for (int i = 0; i < data.Length; i++) { buf.Append(data[i].ToString()); if (i < data.Length - 1) { buf.Append(","); } } return(buf.ToString()); }
public override string ToString() { var data = m_sequence.getEncoding(s_encoder); var buf = new StringBuilder(data.Length); for (var i = 0; i < data.Length; i++) { buf.Append(data[i].ToString()); if (i < data.Length - 1) { buf.Append(","); } } return(buf.ToString()); }
/// <summary> /// Constructs a virtual list control using the specified filter /// expression along with an optional server context. /// The expression specifies the first entry to be used for the /// virtual search results. The other two paramers are the number of /// entries before and after a located index to be returned. /// </summary> /// <param name="jumpTo"> /// A search expression that defines the first /// element to be returned in the virtual search results. The filter /// expression in the search operation itself may be, for example, /// "objectclass=person" and the jumpTo expression in the virtual /// list control may be "cn=m*", to retrieve a subset of entries /// starting at or centered around those with a common name beginning /// with the letter "M". /// </param> /// <param name="beforeCount"> /// The number of entries before startIndex (the /// reference entry) to be returned. /// </param> /// <param name="afterCount"> /// The number of entries after startIndex to be /// returned. /// </param> /// <param name="context"> /// Used by some implementations to process requests /// more efficiently. The context should be null on the first search, /// and thereafter it should be whatever was returned by the server in the /// virtual list response control. /// </param> public LdapVirtualListControl(string jumpTo, int beforeCount, int afterCount, string context) : base(requestOID, true, null) { /* Save off the fields in local variables */ m_beforeCount = beforeCount; m_afterCount = afterCount; m_jumpTo = jumpTo; m_context = context; /* Call private method to build the ASN.1 encoded request packet. */ BuildTypedVLVRequest(); /* Set the request data field in the in the parent LdapControl to * the ASN.1 encoded value of this control. This encoding will be * appended to the search request when the control is sent. */ setValue(m_vlvRequest.getEncoding(new LBEREncoder())); }
// Put together search control value and have the base class - LdapControl package the request. public LdapPagedResultsControl(int pageSize, String cookie) : base(requestOID, true, null) { m_pageSize = pageSize; m_cookie = cookie; BuildPagedSearchRequest(); /* Set the request data field in the in the parent LdapControl to * the ASN.1 encoded value of this control. This encoding will be * appended to the search request when the control is sent. */ setValue(m_pagedSearchRequest.getEncoding(new LBEREncoder())); return; }