ManagementAgent.EscapeDNComponent Method (String[])
Creates a ReferenceValue object that contains an escaped distinguished name component from an array of strings. The strings should not contain escaped characters.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As ManagementAgent
Dim parts As String()
Dim returnValue As ReferenceValue
returnValue = instance.EscapeDNComponent(parts)
Syntax
'Declaration
Public MustOverride Function EscapeDNComponent ( _
ParamArray parts As String() _
) As ReferenceValue
public abstract ReferenceValue EscapeDNComponent (
params string[] parts
)
public:
virtual ReferenceValue^ EscapeDNComponent (
... array<String^>^ parts
) abstract
public abstract ReferenceValue EscapeDNComponent (
String[] parts
)
public abstract function EscapeDNComponent (
... parts : String[]
) : ReferenceValue
Parameters
- parts
Contains an array of strings that will be used to build the distinguished name component. The strings should not contain escaped characters.
Return Value
Returns a ReferenceValue object that represents the escaped distinguished name component.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentException | The management agent requires a distinguished name that has a single component, and the parts parameter contains zero components or more than one component. |
System.OutOfMemoryException | A memory allocation failure occurred. |
Remarks
You can use this method to handle multi-part relative distinguished names (RDNs).
Because different management agents require different distinguished name formats, this method processes the input strings based on the type of management agent. The types are Lightweight Directory Access Protocol (LDAP) distinguished name, such as Active Directory Domain Services (AD DS), Sun ONE Directory Server 5.1 (formerly iPlanet Directory Server), Microsoft Exchange, and XMLMA with LDAP distinguished names; hierarchical non-LDAP, such as Windows NT and Lotus Notes; and extrinsic, such as database and XML without LDAP distinguished names.
Management agent type | Processing |
---|---|
LDAP Distinguished Name |
Note The validation of distinguished names is less strict than the syntax that is defined in the LDAP specifications. EscapeDNComponent allows a part name to contain any combination of one or more of the characters 'a'-'z', 'A'-'Z', '0'-'9', '-', and '.'. |
Hierarchical non-LDAP |
|
Extrinsic |
|
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
Change History
See Also
Reference
ManagementAgent Class
ManagementAgent Members
Microsoft.MetadirectoryServices Namespace
ReferenceValue
ManagementAgent Class