| AutoRegisterAttribute Class |
Automatically adds the information about the add-in into the registry
Inheritance Hierarchy
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
Public Class AutoRegisterAttribute
Inherits Attribute
public ref class AutoRegisterAttribute : public Attribute
The AutoRegisterAttribute type exposes the following members.
Constructors 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
DescriptionAttributeExamples 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