Skip to main content

Component Plug-In SDK 2026 R1

Constructor AbstractPlugInViewModel

Last update: 19.06.2026

Namespace: Phoenix.ComponentPlugInSDK.ViewModels
Assembly: Phoenix.ComponentPlugInSDK.dll

AbstractPlugInViewModel(MODEL_TYPE, ILogger, string, Func<MODEL_TYPE, Task>, Action, Action<Exception>, Uri)

Constructor.

protected AbstractPlugInViewModel(MODEL_TYPE model, ILogger logger, string componentName, Func<MODEL_TYPE, Task> saveAsync, Action closeViewAction, Action<Exception> showErrorAction, Uri icon)

Parameters

model MODEL_TYPE

The model representing the data of the derived viewModel.

logger ILogger

A logger to use

componentName string

The name of the component to use in the View.

saveAsync Func<MODEL_TYPE, Task>

An Async Function to invoke to perform a save operaion.

closeViewAction Action

An action that closes the window.

showErrorAction Action<Exception>

An action that displays error information to the user.

icon Uri

The URI of the icon to use in the view. If null, the default Windows icon will be used.

Connect with Ansys