C# 클래스 Novell.Directory.Ldap.Utilclass.RDN

A RDN encapsulates a single object's name of a Distinguished Name(DN). The object name represented by this class contains no context. Thus a Relative Distinguished Name (RDN) could be relative to anywhere in the Directories tree. For example, of following DN, 'cn=admin, ou=marketing, o=corporation', all possible RDNs are 'cn=admin', 'ou=marketing', and 'o=corporation'. Multivalued attributes are encapsulated in this class. For example the following could be represented by an RDN: 'cn=john + l=US', or 'cn=juan + l=ES'
상속: System.Object
파일 보기 프로젝트 열기: EventStore/csharp-ldap 1 사용 예제들

공개 메소드들

메소드 설명
RDN ( ) : System
RDN ( System rdn ) : System

Creates an RDN object from the DN component specified in the string RDN

ToString ( ) : System.String

Creates a string that represents this RDN, according to RFC 2253

add ( System attrType, System attrValue, System rawValue ) : void

Adds another value to the RDN. Only one attribute type is allowed for the RDN.

explodeRDN ( bool noTypes ) : System.String[]

Returns each multivalued name in the current RDN as an array of Strings.

비공개 메소드들

메소드 설명
equalAttrType ( System attr1, System attr2 ) : bool

Internal function used by equal to compare Attribute types. Because attribute types could either be an OID or a name. There needs to be a Translation mechanism. This function will absract this functionality. Currently if types differ (Oid and number) then UnsupportedOperation is thrown, either one or the other must used. In the future an OID to name translation can be used.

equals ( RDN rdn ) : bool
toString ( bool noTypes ) : System.String

메소드 상세

RDN() 공개 메소드

public RDN ( ) : System
리턴 System

RDN() 공개 메소드

Creates an RDN object from the DN component specified in the string RDN
public RDN ( System rdn ) : System
rdn System the DN component ///
리턴 System

ToString() 공개 메소드

Creates a string that represents this RDN, according to RFC 2253
public ToString ( ) : System.String
리턴 System.String

add() 공개 메소드

Adds another value to the RDN. Only one attribute type is allowed for the RDN.
public add ( System attrType, System attrValue, System rawValue ) : void
attrType System Attribute type, could be an OID or String ///
attrValue System Attribute Value, must be normalized and escaped ///
rawValue System or text before normalization, can be Null ///
리턴 void

explodeRDN() 공개 메소드

Returns each multivalued name in the current RDN as an array of Strings.
public explodeRDN ( bool noTypes ) : System.String[]
noTypes bool Specifies whether Attribute types are included. The attribute /// type names will be ommitted if the parameter noTypes is true. /// ///
리턴 System.String[]