CSEntryChangeExtensionsGetNewDNOrDefaultT Method |
Searches the CSEntryChange for an AttributeChange with the name 'DN', and if found, returns the new value
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static T GetNewDNOrDefault<T>(
this CSEntryChange csentry
)
<ExtensionAttribute>
Public Shared Function GetNewDNOrDefault(Of T) (
csentry As CSEntryChange
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T GetNewDNOrDefault(
CSEntryChange^ csentry
)
Parameters
- csentry
- Type: CSEntryChange
The CSEntryChange to evaluate
Type Parameters
- T
- The type of the DN attribute
Return Value
Type:
TThe new DN, or default(T) if a DN change was not present
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CSEntryChange. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also