Class SourceFileAttribute
Indicates the AX/Structured-Text source file from which this type was transpiled.
The path is forward-slash separated; its base depends on the assembly-level provenance
attribute: it is relative to the repository root when SourceRepositoryAttribute
is present on the assembly, otherwise relative to the project src folder (when
SourceLibraryAttribute is present, or in legacy output with neither).
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
public class SourceFileAttribute : Attribute
Constructors
| Edit this page View SourceSourceFileAttribute(string)
Creates new instance of SourceFileAttribute
Declaration
public SourceFileAttribute(string sourceFile)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFile | Source file path, relative to the project |
Properties
| Edit this page View SourceSourceFile
Gets the source file path, relative to the project src folder, forward-slash separated.
Declaration
public string SourceFile { get; }
Property Value
| Type | Description |
|---|---|
| string |