Class DirectoryEntryPropertyExtensions
Extensions to handle the properties of a DirectoryEntry
Inheritance
System.Object
DirectoryEntryPropertyExtensions
Inherited Members
System.Object.ToString()
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.Extensions
Assembly: Dapplo.ActiveDirectory.dll
Syntax
public static class DirectoryEntryPropertyExtensions
Methods
| Improve this Doc View SourceConvertProperty(DirectoryEntry, String, Type)
Convert the specified property to the target type
Declaration
public static object ConvertProperty(this DirectoryEntry directoryEntry, string propertyName, Type targetType = null)
Parameters
Type | Name | Description |
---|---|---|
System.DirectoryServices.DirectoryEntry | directoryEntry | DirectoryEntry |
System.String | propertyName | string |
System.Type | targetType | Type |
Returns
Type | Description |
---|---|
System.Object | object |