Microsoft.CodeAnalysis.Sarif.Converters.FortifyPathElement.FortifyPathElement C# (CSharp) Method

FortifyPathElement() public method

Initializes a new instance of the FortifyPathElement class.
Thrown when null. Thrown when one or more arguments are outside the /// required range.
public FortifyPathElement ( string filePath, int lineStart, string targetFunction ) : System
filePath string Full pathname of the file.
lineStart int The line start index.
targetFunction string Target function name; may be null.
return System
        public FortifyPathElement(string filePath, int lineStart, string targetFunction)
        {
            if (filePath == null)
            {
                throw new ArgumentNullException(nameof(filePath));
            }

            if (lineStart <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(lineStart), lineStart, ConverterResources.FortifyBadLineNumber);
            }

            this.FilePath = filePath;
            this.LineStart = lineStart;
            this.TargetFunction = targetFunction;
        }
FortifyPathElement