Class WorkflowNamespaceIconAttribute
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Specifies the icon that should represent a given namespace in the assembly this attribute is bound to when drawing the workflow.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class WorkflowNamespaceIconAttribute : Attribute, _Attribute
- Inheritance
-
WorkflowNamespaceIconAttribute
- Implements
- Inherited Members
Constructors
WorkflowNamespaceIconAttribute(string)
Initializes a new instance of the WorkflowNamespaceIconAttribute class with the name of the default icon resource used to represent namespaces in the assembly this attribute is bound to.
public WorkflowNamespaceIconAttribute(string name)
Parameters
name
stringThe name of the default icon resource used to represent namespaces in the assembly this attribute is bound to.
WorkflowNamespaceIconAttribute(string, string)
Initializes a new instance of the WorkflowNamespaceIconAttribute class with a specific namespace that will be matched against workflow element types in the assembly this attribute is bound to, and the name of the icon resource used to represent the namespace in case of a successful match.
public WorkflowNamespaceIconAttribute(string ns, string name)
Parameters
ns
stringThe specific namespace that will be matched against workflow element types in the assembly this attribute is bound to. If this value is null or empty, the match will be successful against any namespace.
name
stringThe name of the icon resource used to represent the namespace in the assembly this attribute is bound to.
Properties
Namespace
Gets the optional namespace that will be matched against a workflow element type. If this value is null or empty, the match will be successful against any namespace in the assembly this attribute is bound to.
public string Namespace { get; }
Property Value
ResourceName
Gets the name of the icon resource used to represent a namespace in the assembly this attribute is bound to.
public string ResourceName { get; }