Class FeatureInfo
Provides information about an application feature.
Implements
Inherited Members
Namespace: Kephas.Application.Reflection
Assembly: Kephas.Application.dll
Syntax
public class FeatureInfo : Expando, IFeatureInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Constructors
| Improve this Doc View SourceFeatureInfo(String, String, Boolean, String[])
Initializes a new instance of the FeatureInfo class.
Declaration
public FeatureInfo(string name, string version = null, bool isRequired = false, string[] dependencies = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The feature name. |
System.String | version | Optional. The feature version. |
System.Boolean | isRequired | Optional. True if this feature is required, false if not. |
System.String[] | dependencies | Optional. The feature dependencies. |
FeatureInfo(String, Version, Boolean, String[])
Initializes a new instance of the FeatureInfo class.
Declaration
public FeatureInfo(string name, Version version = null, bool isRequired = false, string[] dependencies = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The feature name. |
System.Version | version | Optional. The feature version. |
System.Boolean | isRequired | Optional. True if this feature is required, false if not. |
System.String[] | dependencies | Optional. The feature dependencies. |
Properties
| Improve this Doc View SourceDependencies
Gets the feature dependencies.
Declaration
public string[] Dependencies { get; }
Property Value
Type | Description |
---|---|
System.String[] | The dependencies. |
IsRequired
Gets a value indicating whether this feature is required.
Declaration
public bool IsRequired { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this feature is required, false if not. |
Name
Gets the feature.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The feature. |
Version
Gets the feature version.
Declaration
public Version Version { get; }
Property Value
Type | Description |
---|---|
System.Version | The feature version. |
Methods
| Improve this Doc View SourceFromMetadata(FeatureManagerMetadata)
Gets the FeatureInfo from the given metadata.
Declaration
public static FeatureInfo FromMetadata(FeatureManagerMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
FeatureManagerMetadata | metadata | The metadata. |
Returns
Type | Description |
---|---|
FeatureInfo | A FeatureInfo. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIElementInfo.Annotations
Gets the annotations of the FeatureInfo.
Declaration
IEnumerable<object> IElementInfo.Annotations { get; }
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |
IElementInfo.DeclaringContainer
Gets the declaring container of the FeatureInfo.
Declaration
IElementInfo IElementInfo.DeclaringContainer { get; }
Returns
Type | Description |
---|---|
IElementInfo |
IElementInfo.FullName
Gets the full name of the FeatureInfo.
Declaration
string IElementInfo.FullName { get; }
Returns
Type | Description |
---|---|
System.String |
IAttributeProvider.GetAttributes<TAttribute>()
Gets the attribute of the provided type.
Declaration
IEnumerable<TAttribute> IAttributeProvider.GetAttributes<TAttribute>()
where TAttribute : Attribute
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TAttribute> | The attribute of the provided type. |
Type Parameters
Name | Description |
---|---|
TAttribute | Type of the attribute. |