SkillScriptNaming
Namespace AgentPrism · Assembly
AgentPrism.Core.dllValidates the file name a stored script is written under.
public static class SkillScriptNamingInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Section titled “Methods”IsSafeFileName(string?)
Section titled “ IsSafeFileName(string?)”Reports whether the name is a plain file name.
public static bool IsSafeFileName(string? scriptName)Parameters
Section titled “Parameters”scriptName string?
The candidate name.
Returns
Section titled “Returns”true when the name is safe to combine with a directory.
RequireSafeFileName(string)
Section titled “ RequireSafeFileName(string)”Returns the name when it is a plain file name.
public static string RequireSafeFileName(string scriptName)Parameters
Section titled “Parameters”scriptName string
The script name as stored.
Returns
Section titled “Returns”The same name.
Exceptions
Section titled “Exceptions”The name is not a plain file name.