NotableDatePluginAttribute Class
Definition
- Namespace
- Bodu.Globalization.Calendar.Plugins
- Assembly
- Bodu.Globalization.Calendar.Plugins.dll
- Package
- Bodu.Globalization.Calendar.Plugins 1.0.0
Declares, at assembly level, the entry-point type the plugin loader activates to obtain the assembly's INotableDatePlugin.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class NotableDatePluginAttribute : Attribute
- Inheritance
-
NotableDatePluginAttribute
- Attributes
-
System.AttributeUsageAttribute
- Inherited Members
- Extension Methods
Remarks
// Declared once at assembly level (for example in the plugin project's AssemblyInfo.cs or any source file).
[assembly: NotableDatePlugin(typeof(ContosoCalendarPlugin))]
// NotableDatePluginLoader reads this attribute to locate and activate the entry-point type.
Constructors
NotableDatePluginAttribute(Type)
Initializes a new instance of the NotableDatePluginAttribute class.
public NotableDatePluginAttribute(Type pluginType)
Parameters
pluginTypeTypeThe type that implements INotableDatePlugin.
Exceptions
- ArgumentNullException
pluginTypeis null.
Properties
PluginType
Gets the type that implements INotableDatePlugin.
public Type PluginType { get; }
Property Value
- Type
The plugin entry-point type.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |