Class FeatureDefinition
Inheritance
object
FeatureDefinition
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Features.dll
Syntax
public class FeatureDefinition : ICanCreateChildFeature
Constructors
FeatureDefinition(string, string?, ILocalizableString?, ILocalizableString?, IStringValueType?, bool, bool)
Declaration
public FeatureDefinition(string name, string? defaultValue = null, ILocalizableString? displayName = null, ILocalizableString? description = null, IStringValueType? valueType = null, bool isVisibleToClients = true, bool isAvailableToHost = true)
Parameters
Properties
AllowedProviders
Declaration
public List<string> AllowedProviders { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<T><string> |
|
Children
Declaration
public IReadOnlyList<FeatureDefinition> Children { get; }
Property Value
DefaultValue
Declaration
public string? DefaultValue { get; set; }
Property Value
Description
Declaration
public ILocalizableString? Description { get; set; }
Property Value
DisplayName
Declaration
public ILocalizableString DisplayName { get; set; }
Property Value
IsAvailableToHost
Declaration
public bool IsAvailableToHost { get; set; }
Property Value
IsVisibleToClients
Declaration
public bool IsVisibleToClients { get; set; }
Property Value
this[string]
Declaration
public object? this[string name] { get; set; }
Parameters
Type |
Name |
Description |
string |
name |
|
Property Value
Name
Declaration
public string Name { get; }
Property Value
Parent
Declaration
public FeatureDefinition? Parent { get; }
Property Value
Properties
Declaration
public Dictionary<string, object?> Properties { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
|
ValueType
Declaration
public IStringValueType? ValueType { get; set; }
Property Value
Methods
CreateChild(string, string?, ILocalizableString?, ILocalizableString?, IStringValueType?, bool, bool)
Declaration
public FeatureDefinition CreateChild(string name, string? defaultValue = null, ILocalizableString? displayName = null, ILocalizableString? description = null, IStringValueType? valueType = null, bool isVisibleToClients = true, bool isAvailableToHost = true)
Parameters
Returns
CreateChildFeature(string, string?, ILocalizableString?, ILocalizableString?, IStringValueType?, bool, bool)
Declaration
public FeatureDefinition CreateChildFeature(string name, string? defaultValue = null, ILocalizableString? displayName = null, ILocalizableString? description = null, IStringValueType? valueType = null, bool isVisibleToClients = true, bool isAvailableToHost = true)
Parameters
Returns
RemoveChild(string)
Declaration
public void RemoveChild(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
object.ToString()
WithProperty(string, object)
Declaration
public virtual FeatureDefinition WithProperty(string key, object value)
Parameters
Type |
Name |
Description |
string |
key |
|
object |
value |
|
Returns
WithProviders(params string[])
Declaration
public virtual FeatureDefinition WithProviders(params string[] providers)
Parameters
Type |
Name |
Description |
string[] |
providers |
|
Returns
Implements
Extension Methods