Class ExternalCommandLineProcessorAttribute
Extension attribute for regsitering command line processors. This can be used on classes implementing IExternalCommandLineProcessor.
Implements
Inherited Members
Namespace: SdlSdl.DesktopIntegrationApiExtensionsCommandLine
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[ExtensionPointInfo("Command Line Processors", ExtensionPointBehavior.Static)]
[AttributeUsage(AttributeTargets.Class)]
public sealed class ExternalCommandLineProcessorAttribute : ExtensionAttribute, _Attribute
Constructors
ExternalCommandLineProcessorAttribute()
Default constructor for XML serialization.
Declaration
public ExternalCommandLineProcessorAttribute()
ExternalCommandLineProcessorAttribute(string, string, string)
Constructor with required parameters.
Declaration
public ExternalCommandLineProcessorAttribute(string id, string name, string description)
Parameters
Type | Name | Description |
---|---|---|
string | id | An id for the processor. |
string | name | A name for the processor. |
string | description | A description for the processor. |
Methods
Validate(IExtensionAttributeInfo, IExtensionValidationContext)
Validates an extension targeting this extension point. This method is called by the framework while generating the plug-in manifest.
Declaration
public override void Validate(IExtensionAttributeInfo info, IExtensionValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
IExtensionAttributeInfo | info | Information about the extension. |
IExtensionValidationContext | context | Provides functionality to validate extensions targeting the extension point and report warning or error messages |