Skip to content

M_Aml_Editor_Plugin_Contracts_Commanding_EditorCommandBase_OpenCAEXFile

AutomationML edited this page Jun 24, 2019 · 1 revision

EditorCommandBase.OpenCAEXFile Method (IEditorCommanding, Stream, OpenFileCommandArguments)

AutomationML Editor

Calls the command, to open the CAEX file from a stream.

Namespace: Aml.Editor.Plugin.Contracts.Commanding
Assembly: AML.Editor.PluginContracts (in AML.Editor.PluginContracts.dll) Version: 2.1

Syntax

C#

public static bool OpenCAEXFile(
	this IEditorCommanding plugIn,
	Stream fileContent,
	out OpenFileCommandArguments result
)

VB

<ExtensionAttribute>
Public Shared Function OpenCAEXFile ( 
	plugIn As IEditorCommanding,
	fileContent As Stream,
	<OutAttribute> ByRef result As OpenFileCommandArguments
) As Boolean

C++

public:
[ExtensionAttribute]
static bool OpenCAEXFile(
	IEditorCommanding^ plugIn, 
	Stream^ fileContent, 
	[OutAttribute] OpenFileCommandArguments^% result
)

Parameters

 

plugIn
Type: Aml.Editor.Plugin.Contracts.Commanding.IEditorCommanding
The plug in.
fileContent
Type: System.IO.Stream
The file content stream.
result
Type: Aml.Editor.Plugin.Contracts.Commanding.OpenFileCommandArguments
The result.

Return Value

Type: Boolean
true, if the operation has been executed successfully; false if an Error exists or the operation has been canceled. Interpret the result output for details.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEditorCommanding. 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

Reference

EditorCommandBase Class
OpenCAEXFile Overload
Aml.Editor.Plugin.Contracts.Commanding Namespace

Clone this wiki locally