T
The type of the extension.
EasyUA Reference
UpdateExtension<T> Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > Utils Class : UpdateExtension<T> Method

extensions
The list of extensions to update.
elementName
Name of the element (use type name if null).
value
The value.

Glossary Item Box

Looks for an extension with the specified type and uses the DataContractSerializer to serializes its replacement.

Syntax

Visual Basic (Usage)Copy Code
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.

Remarks

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.