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.
int CompareTo(RdnPart otherRdnPart)
Return value
The method returns an int 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(bool 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