Visual Basic (Usage) | ![]() |
---|---|
Dim extensions As XmlElementCollection Dim elementName As XmlQualifiedName Dim value As Object Utils.UpdateExtension(Of T)(extensions, elementName, value) |
C# | |
---|---|
public static void UpdateExtension<T>( ref XmlElementCollection extensions, XmlQualifiedName elementName, object value ) |
Parameters
- extensions
- The list of extensions to update.
- elementName
- Name of the element (use type name if null).
- value
- The value.
Type Parameters
- T
- The type of the extension.
Adds a new extension if the it does not already exist.
Deletes the extension if the value is null.
The containing element must use the name and namespace uri specified by the DataContractAttribute for the type.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x