• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.ActiveDirectory
    • ActiveDirectoryExtensions
    • ActiveDirectoryGlobals
    • AdPropertyAttribute
    • IAdObject
    • IAdObjectFactory
  • Dapplo.ActiveDirectory.Entities
    • Comparisons
    • DistinguishedName
    • Operators
    • Property
    • PropertyComparison
    • Query
    • QueryElement
    • Value
  • Dapplo.ActiveDirectory.Enums
    • AdProperties
    • ClassNames
    • ComputerProperties
    • DistinguishedNameAttributes
    • UserAccountControlFlags
    • UserProperties
  • Dapplo.ActiveDirectory.Extensions
    • AdDateTimeExtensions
    • DirectoryEntryPropertyExtensions
    • EnumExtensions
    • PropertyInfoExtension
  • Dapplo.ActiveDirectory.Finder
    • FinderAddonModule
    • Startup
  • Dapplo.ActiveDirectory.Finder.Configuration
    • IFinderTranslations
  • Dapplo.ActiveDirectory.Finder.Entities
    • IUser
  • Dapplo.ActiveDirectory.Finder.Ui.ViewModels
    • FinderViewModel
  • Dapplo.ActiveDirectory.Finder.Ui.Views
    • FinderView
  • Dapplo.ActiveDirectory.Internal
    • IAdsLargeInteger
    • IADsSecurityDescriptor
    • SimpleDictionaryProxy

Class DistinguishedName

This class helps with processing a DistinguishedName See: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366101.aspx

Inheritance
System.Object
DistinguishedName
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<DistinguishedNameAttributes, System.String>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.ActiveDirectory.Entities
Assembly: Dapplo.ActiveDirectory.dll
Syntax
public class DistinguishedName : IEnumerable<KeyValuePair<DistinguishedNameAttributes, string>>, IEnumerable

Properties

| Improve this Doc View Source

RelativeDistinguishedNames

List of the distinguished names, this is just the collection of all available dn's

Declaration
public IEnumerable<KeyValuePair<DistinguishedNameAttributes, string>> RelativeDistinguishedNames { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<DistinguishedNameAttributes, System.String>>

Methods

| Improve this Doc View Source

Add(DistinguishedNameAttributes, String)

Add whatever the DistinguishedNameAttributes has

Declaration
public DistinguishedName Add(DistinguishedNameAttributes distinguishedNameAttribute, string value)
Parameters
Type Name Description
DistinguishedNameAttributes distinguishedNameAttribute

DistinguishedNameAttributes

System.String value
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

Add(String)

Add a "relative" distinguishedName, meaning it will parse a value like "DC=something" and add it

Declaration
public DistinguishedName Add(string relativeDistinguishedName)
Parameters
Type Name Description
System.String relativeDistinguishedName
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

Cn(String)

Add a CN

Declaration
public DistinguishedName Cn(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

Create()

Create a DistinguishedName, as the default constructor is private

Declaration
public static DistinguishedName Create()
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

CreateFrom(String)

Create a DistinguishedName from a string representation

Declaration
public static DistinguishedName CreateFrom(string distinguishedName)
Parameters
Type Name Description
System.String distinguishedName
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

Dc(String)

Add a DC

Declaration
public DistinguishedName Dc(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

GetEnumerator()

Enumerator for the destinguished names

Declaration
public IEnumerator<KeyValuePair<DistinguishedNameAttributes, string>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<DistinguishedNameAttributes, System.String>>

IEnumerator

| Improve this Doc View Source

Ou(String)

Add a OU

Declaration
public DistinguishedName Ou(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
DistinguishedName

DistinguishedName

| Improve this Doc View Source

ToString()

Create a string representation of the DistinguishedName

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Operators

| Improve this Doc View Source

Implicit(DistinguishedName to String)

Add implicit casting to string

Declaration
public static implicit operator string (DistinguishedName value)
Parameters
Type Name Description
DistinguishedName value

string

Returns
Type Description
System.String
| Improve this Doc View Source

Implicit(String to DistinguishedName)

Add implicit casting from string

Declaration
public static implicit operator DistinguishedName(string value)
Parameters
Type Name Description
System.String value

string

Returns
Type Description
DistinguishedName

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

IEnumerable implementation

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © Dapplo