Click or drag to resize

AutoRegisterAttribute Class

Automatically adds the information about the add-in into the registry
Inheritance Hierarchy
SystemObject
  SystemAttribute
    CodeStack.SwEx.AddIn.AttributesAutoRegisterAttribute

Namespace:  CodeStack.SwEx.AddIn.Attributes
Assembly:  CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: 0.8.1.0 (0.8.1.0)
Syntax
public class AutoRegisterAttribute : Attribute

The AutoRegisterAttribute type exposes the following members.

Constructors
  NameDescription
Public methodAutoRegisterAttribute
Constructor for adding the parameters for add-in registration
Top
Remarks
The registration is triggered when the add-in is registered as COM assembly using the regasm utility. If Title or Description are not specified (empty string) than title and description will be read from SwAddinAttribute. If this attribute is not specified than title will be assigned from the DisplayNameAttribute and description will be assined from DescriptionAttribute
Examples
Add-in title specified via AutoRegisterAttribute
[Guid("GUID"), ComVisible(true)]
[AutoRegister("Sample AddInEx", "Sample AddInEx", true)]
public class SwSampleAddIn : SwAddInEx { }
Add-in title specified via SwAddinAttribute
[Guid("GUID"), ComVisible(true)]
[SwAddin(Title = "Sample AddInEx", Description = "Sample AddInEx", LoadAtStartup = true)]
[AutoRegister]
public class SwSampleAddIn : SwAddInEx { }
Add-in title specified via DisplayNameAttribute and DescriptionAttribute
[Guid("GUID"), ComVisible(true)]
[DisplayName("Sample AddInEx")]
[Description("Sample AddInEx")]
[AutoRegister]
public class SwSampleAddIn : SwAddInEx { }
See Also