RdnPart
The RdnPart class represents a type-value pair that is used in a relative distinguished name (RDN). Such a pair corresponds to the AttributeTypeAndValue structure as defined in RFC 2253.
Inheritance: The RdnPart class implements the IComparable<RdnPart> interface.
Namespace: Softerra.Adaxes.Ldap
Constructors
-
Constructor
-
Description
-
RdnPart()
-
Constructs a new instance of the RdnPart class.
-
RdnPart(String, String)
-
Constructs a new instance of the RdnPart class based on the specified RDN type and RDN value.
-
RdnPart(RdnPart)
-
Constructs a new instance of the RdnPart class by copying the RDN type and RDN value from another instance of the RdnPart class.
Methods
-
Method
-
Description
-
CompareTo()
-
Compares the RDN type-value pair with another type-value pair.
-
ToString()
-
Returns a String that represents this instance of the RdnPart class.
Properties
Details
RdnPart()
Constructs a new instance of the RdnPart class.
RdnPart()
RdnPart(String, String)
Constructs a new instance of the RdnPart class based on the specified RDN type and RDN value.
RdnPart(String type, String value)
Exceptions
- ArgumentNullException
- Either the type or the value parameter is NULL.
RdnPart(RdnPart)
Constructs a new instance of the RdnPart class by copying the RDN type and RDN value from another instance of the RdnPart class.
RdnPart(RdnPart otherRdnPart)
CompareTo()
Compares the RDN type-value pair with another type-value pair.
Int32 CompareTo(RdnPart otherRdnPart)
Return value
The method returns an Int32 that indicates the relative order of the objects being compared. The return value has the following meanings:
- If the return value is less than zero, this type-value pair is less than the type-value pair specified in the otherRdnPart parameter.
- If the return value is 0, this type-value pair is equal to the type-value pair specified in the otherRdnPart parameter.
- If the return value is greater than zero, this type-value pair is greater than the type-value pair specified in the otherRdnPart parameter.
ToString()
Returns a String that represents this instance of the RdnPart class.
String ToString(Boolean noType)
Parameters
If the noType parameter is set to TRUE, the method returns only the RDN value without the RDN type (e.g. "John Doe" instead of "CN=John Doe").
Type
Gets or sets the RDN type.
- Type:
- String
- Access:
- Read/Write
Value
Gets or sets the RDN value.
- Type:
- String
- Access:
- Read/Write
Requirements
Minimum required version: 2009.1