DsPkiContainerGetEntryPropertyT Method |
Gets a property from an Active Directory object.
Namespace:
SysadminsLV.PKI.Management.ActiveDirectory
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax protected T[] GetEntryProperty<T>(
DirectoryEntry entry,
string prop
)
where T : class
Protected Function GetEntryProperty(Of T As Class) (
entry As DirectoryEntry,
prop As String
) As T()
protected:
generic<typename T>
where T : ref class
array<T>^ GetEntryProperty(
DirectoryEntry^ entry,
String^ prop
)
member GetEntryProperty :
entry : DirectoryEntry *
prop : string -> 'T[] when 'T : not struct
Parameters
- entry
- Type: System.DirectoryServicesDirectoryEntry
A directory entry object. If this parameter is null, a BaseEntry object is used.
- prop
- Type: SystemString
Specifies the property name to query.
Type Parameters
- T
- Specifies the expected output type.
Return Value
Type:
T
A collection of values of type speficies in the type parameter.
Remarks
If actual property value doesn't match requested type (specified in the type parameter), the
value is ignored and empty array is returned.
See Also