Show / Hide Table of Contents

Class FeatureInfo

Provides information about an application feature.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
FeatureInfo
Implements
IFeatureInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider
Inherited Members
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Application.Reflection
Assembly: Kephas.Application.dll
Syntax
public class FeatureInfo : Expando, IFeatureInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Constructors

| Improve this Doc View Source

FeatureInfo(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.

| Improve this Doc View Source

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 Source

Dependencies

Gets the feature dependencies.

Declaration
public string[] Dependencies { get; }
Property Value
Type Description
System.String[]

The dependencies.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Name

Gets the feature.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The feature.

| Improve this Doc View Source

Version

Gets the feature version.

Declaration
public Version Version { get; }
Property Value
Type Description
System.Version

The feature version.

Methods

| Improve this Doc View Source

FromMetadata(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.

| Improve this Doc View Source

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
System.Object.ToString()

Explicit Interface Implementations

| Improve this Doc View Source

IElementInfo.Annotations

Gets the annotations of the FeatureInfo.

Declaration
IEnumerable<object> IElementInfo.Annotations { get; }
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Object>
| Improve this Doc View Source

IElementInfo.DeclaringContainer

Gets the declaring container of the FeatureInfo.

Declaration
IElementInfo IElementInfo.DeclaringContainer { get; }
Returns
Type Description
IElementInfo
| Improve this Doc View Source

IElementInfo.FullName

Gets the full name of the FeatureInfo.

Declaration
string IElementInfo.FullName { get; }
Returns
Type Description
System.String
| Improve this Doc View Source

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.

Implements

IFeatureInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX