 | AmlObjectsExtensionsReplaceMetaInformation Method |
This function replaces any existing meta information corresponding to the identical
oldWriterID with the new meta information defined in the newMetainformation
Namespace: Aml.Engine.AmlObjects.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool ReplaceMetaInformation(
this CAEXFileType caexFile,
string oldWriterID,
MetaInformation newMetainformation
)
<ExtensionAttribute>
Public Shared Function ReplaceMetaInformation (
caexFile As CAEXFileType,
oldWriterID As String,
newMetainformation As MetaInformation
) As Boolean
public:
[ExtensionAttribute]
static bool ReplaceMetaInformation(
CAEXFileType^ caexFile,
String^ oldWriterID,
MetaInformation^ newMetainformation
)
Parameters
- caexFile CAEXFileType
- My CAEX file.
- oldWriterID String
- writerID of the old meta information
- newMetainformation MetaInformation
- substitute for the old version of meta information
Return Value
Boolean
true if succeeded, false if meta information about the oldWriterID is not found
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CAEXFileType. 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).
Exceptions
Remarks
Extension Method originally designed for AutomationML Versions based on CAEX 2.15. If this method is applied to
a CAEX 3.0 document, the information is transformed to a
SourceDocumentInformationType.
See Also