CSEntryChangeExtensionsGetValueAddT Method |
Gets the value add for a single-valued attribute
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static T GetValueAdd<T>(
this CSEntryChange csentry,
string attributeName
)
<ExtensionAttribute>
Public Shared Function GetValueAdd(Of T) (
csentry As CSEntryChange,
attributeName As String
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T GetValueAdd(
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:
TThe 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