Show / Hide Table of Contents

Interface IVersionableInitializerCommand

Provides an extension point that allows Addins to provide code that is executed when a new instance of an IVersionable item is created.

Inherited Members
IGenericCommand.Name
IGenericCommand.Category
IGenericCommand.SubCategory
IGenericCommand.Image
IGenericCommand.Weight
Namespace: Algenta.Colectica.ViewModel.Commands
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface IVersionableInitializerCommand : IGenericCommand

Methods

CanEverExecute(Guid)

Determines whether this Addin will execute when a new item of the specified type is created.

Declaration
bool CanEverExecute(Guid itemType)
Parameters
Type Name Description
Guid itemType

Type of the item.

Returns
Type Description
bool

Execute(IVersionable)

Called after a new item is created, allowing the Addin to initialize the item.

Declaration
void Execute(IVersionable item)
Parameters
Type Name Description
IVersionable item

The item that was created.

In this article
Back to top Generated by DocFX