Partager via


FromKernelServicesAttribute Class

Definition

Specifies that an argument to a KernelFunction should be supplied from the associated Kernel's Services rather than from KernelArguments.

[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false)]
public sealed class FromKernelServicesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false)>]
type FromKernelServicesAttribute = class
    inherit Attribute
Public NotInheritable Class FromKernelServicesAttribute
Inherits Attribute
Inheritance
FromKernelServicesAttribute
Attributes

Constructors

FromKernelServicesAttribute()

Initializes the attribute.

FromKernelServicesAttribute(Object)

Initializes the attribute with the specified service key.

Properties

ServiceKey

Gets the key to use when searching Services.

Applies to