Class DirectiveAttribute
Specifies a directive on a IScraper that determines when and what information it must have access to before it is run.
Inheritance
Implements
Inherited Members
Namespace: Snowflake.Scraping.Extensibility
Assembly: Snowflake.Framework.Primitives.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class DirectiveAttribute : Attribute, IScraperDirective
Constructors
DirectiveAttribute(AttachTarget, Directive, String)
Specifies a directive on a IScraper that determines when and what information it must have access to before it is run.
Declaration
public DirectiveAttribute(AttachTarget target, Directive directive, string type)
Parameters
Type | Name | Description |
---|---|---|
Attach |
target | All seeds of this type are examined when evaluating the directive. |
Directive | directive | The directive action, whether or not this directive means to run the IScraper if the specified child type is available on the Target, or whether not exclude and not run if the specified child type exists on the target. |
System. |
type | The child type to evaluate this directive on. |
Properties
Directive
Gets the directive action, whether or not this directive means to run the IScraper if the specified child type is available on the Target, or whether not exclude and not run if the specified child type exists on the target.
Declaration
public Directive Directive { get; }
Property Value
Type | Description |
---|---|
Directive |
Target
Gets the target of the directive. All seeds of this type are examined when evaluating the directive.
Declaration
public AttachTarget Target { get; }
Property Value
Type | Description |
---|---|
Attach |
Type
Gets the child type to evaluate this directive on.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System. |