Click or drag to resize
CSEntryChangeExtensionsGetValueAddT Method
Gets the value add for a single-valued attribute

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

Parameters

csentry
Type: CSEntryChange
The CSEntryChange
attributeName
Type: SystemString
The name of the attribute

Type Parameters

T
The data type of the atttribute

Return Value

Type: T
The value of attribute if present, or default(T) if it is not. If the AttributeChange contains multiple value adds, an exceptioin is thrown

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