DataAttribute Class

Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common.Attributes

Summary

Defines a single reusable Dynamic Menu Data Source on a source object level.

Syntax

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
public class DataAttribute : System.Attribute

Properties

  • Method

    Type: System.String

    Gets or sets the name of the method that provides the menu data source. This property is required. This must be a public parameterless method that returns an ICollection<DataSourceItem>.

  • Name

    Type: System.String

    Gets or sets the unique name of the data source, which can be used to distinguish this menu data source from all other menu data sources within the same source object. You can think of this property as a data source identifier that is unique only within the current source object. The uniqueness of each name must be ensured by the developer; Rule Editor does not enforce it. This property is required.

  • Type

    Type: System.Type

    Gets or sets the type that declares the data source method. This property is required if the TypeName property is not specified.

  • TypeOrAliasName

    Type: System.String

    Gets or sets the assembly-qualified name or alias name of the type that declares the data source method. This property is required if the Type property is not specified. You can obtain this name by executing typeof(ClassName).AssemblyQualifiedName.

p102

l097 --

l102

p101

×