Click or drag to resize
CSEntryChangeExtensionsGetAnchorValueOrDefaultT Method
Gets the value of the specified anchor attribute if it exists, or the default value of the type if it doesn't

Namespace: Lithnet.MetadirectoryServices
Assembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax
public static T GetAnchorValueOrDefault<T>(
	this CSEntryChange csentry,
	string anchorName
)

Parameters

csentry
Type: CSEntryChange
The CSEntryChange to get the anchor value from
anchorName
Type: SystemString
The name of the anchor attribute

Type Parameters

T
The data type of the anchor attribute

Return Value

Type: T
The value of the anchor attribute, or default(T) if the anchor 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