Class ExternalCommandLineProcessorAttribute
Extension attribute for regsitering command line processors. This can be used on classes implementing IExternalCommandLineProcessor.
Inheritance
Object
ExternalCommandLineProcessorAttribute
Namespace: Sdl.Desktop.IntegrationApi.Extensions.CommandLine
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class ExternalCommandLineProcessorAttribute : ExtensionAttribute
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 |