Class ConfigurationTargetAttribute
Defines a target context to create a read-only AST.
Inheritance
System.Object
System.Attribute
ConfigurationTargetAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Configuration.Attributes
Assembly: Snowflake.Framework.Primitives.dll
Syntax
[AttributeUsage(AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
public class ConfigurationTargetAttribute : Attribute
Constructors
ConfigurationTargetAttribute(String)
Define a root target with the following name.
Declaration
public ConfigurationTargetAttribute(string targetName)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetName | The name of the target. |
ConfigurationTargetAttribute(String, String)
Define a child target with the following name and parent target. Each target name must be unique, and targets that do not lead back to a root target will be discarded. This ensures that no cycles are created when evaluating the target tree.
Declaration
public ConfigurationTargetAttribute(string targetName, string parentTarget)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetName | The name of the target. |
System. |
parentTarget | The name of the parent target from which this members' AST will be inserted into. |
Properties
IsRoot
Whether or not this target is a root target that will evaluate an AST to a stream.
Declaration
public bool IsRoot { get; }
Property Value
Type | Description |
---|---|
System. |
ParentTarget
If Is
Declaration
public string ParentTarget { get; }
Property Value
Type | Description |
---|---|
System. |
TargetName
The name of the target.
Declaration
public string TargetName { get; }
Property Value
Type | Description |
---|---|
System. |