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.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static T GetAnchorValueOrDefault<T>(
this CSEntryChange csentry,
string anchorName
)
<ExtensionAttribute>
Public Shared Function GetAnchorValueOrDefault(Of T) (
csentry As CSEntryChange,
anchorName As String
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T GetAnchorValueOrDefault(
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:
TThe 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