Script Toolkit

Namespace: T.Toolkit
Assembly: T.Toolkit (in T.Toolkit.dll)

Public Class TK
This language is not supported or no code example is available.
public static class TK
This language is not supported or no code example is available.
Name Description
Public property Static ObjServer Internal Use
Top
Name Description
Public method Static AddValuesToTagHistorian(string[], IList<Double>[], IList<Int32>[], IList<DateTime>[]) Add new values to tag historian
Public method Static ArrayDataDefined(string) Gets array size from tag. The size depends to value of quality. The first index found different of Undefined from bottom to top is the returned value.
Public method Static ArraySize(string) Gets array size from tag
Public method Static BeginExecuteClassMethodOnServer(string, string, AsyncCallback, object, object[]) Begin async execute method of class Server domain
Public method Static ClearTag(ArrayObj<UserType>) Clear tag
Public method Static ClearTag(UserType) Clear tag
Public method Static ClearTag(string) Clear tag name
Public method Static CompareTag(UserType, UserType) Compare tags
Public method Static CompareTag(string, string) Compare tags
Public method Static ConvertTo<T>(object) Performs convert to type
Public method Static CopyDataTableToTag(DataTable, UserType) Copy datatable to tag
Public method Static CopyDataTableToTag(DataTable, string) Copy datatable to tag
Public method Static CopyNetObjectToTag(object, IArrayObj, bool) Copy .NET object to tag
Public method Static CopyNetObjectToTag(object, UserType, bool) Copy .NET object to tag
Public method Static CopyNetObjectToTag(object, string, bool) Copy .NET object to tag
Public method Static CopyTagToDataTable(UserType) Copy tag values to datatable
Public method Static CopyTagToDataTable(string) Copy tag values to datatable
Public method Static CopyTagToNetObject(IArrayObj, object, bool, bool) Copy tag values to .NET object
Public method Static CopyTagToNetObject(UserType, object, bool, bool) Copy tag values to .NET object
Public method Static CopyTagToNetObject(string, object, bool, bool) Copy tag values to .NET object
Public method Static CopyTagToTag(UserType, UserType) Copy tag values to another tag
Public method Static CopyTagToTag(string, string) Copy tag values to another tag
Public method Static CreateSyncMarker() Create a sync marker. Sync marker is used to ensure that all objects were syncronized to server
Public method Static CreateTaskEvent(string, object, bool, bool, int) Create an event to be executed
Public method Static EndExecuteClassMethodOnServer(IAsyncResult, object[]) End an asynchronous execute class method
Public method Static ExecuteClassMethodOnServer(string, string, object[]) Execute method of class Server domain
Public method Static GeneratePassword(int) Generates default password
Public method Static GetAssets(string, bool) Gets asset names from level
Public method Static GetCategoryNameFromIDs(UInt64, bool) Get names or titles of categories
Public method Static GetChildrenElements(string) Get children from element name
Public method Static GetChildrenElements(string, eElementType) Get children from element name
Public method Static GetChildrenElements(string, out bool, out bool) Get children from element name
Public method Static GetElementType(string) Gets element type from element name
Public method Static GetLevelName(string) Get level from object name
Public method Static GetMembers(string, EditInfo) Get name of each member from object name
Public method Static GetMembersAsDataRow(string, EditInfo) Gets members from object name
Public method Static GetMembersInfo(string, EditInfo) Gets info from object name
Public method Static GetObjectValue(string) Gets object value
Public method Static GetParentElement(string) Gets parent name from element name
Public method Static GetParentLevel(string) Gets parent of level
Public method Static GetResource(string) Get the brush from resource
Public method Static GetSubLevels(string) Get children from level
Public method Static GetTagChildren(string, bool) Get children from object name
Public method Static GetTagChildrenAsDataRow(bool, string) Get children from object name
Public method Static GetTagChildrenAsDataRow(string, bool) Get children from object name
Public method Static GetTagChildrenInfo(bool, string) Get children from object name
Public method Static GetTagHistorian(string, DateTimeOffset, object, string, bool, bool, bool) Get historical from tag
Public method Static GetTagsHistorian(string[], DateTimeOffset, object, string, bool, bool, bool) Get historical from array of tag
Public method Static GetTaskEvent(string) Get object containing information being executed
Public method Static GetTaskEventCount() Return number of events to be executed
Public method Static GetValueFromHistorian(string, DateTime) Gets historian value from tag name
Public method Static GetValuesFromHistorian(string[], DateTime) Get historian values from tag names
Public method Static HasAttributes(string) Gets if element name has attributes
Public method Static HasChildren(string) Gets if element name has children
Public method Static HasHistorian(string) Gets if tag name has historian
Public method Static InitializeTag(ArrayObj<UserType>, object) Initialize tag with a value
Public method Static InitializeTag(UserType, object) Initialize tag with a value
Public method Static InitializeTag(string, object) Initialize tag with a value
Public method Static IsArrayBase(string) Gets if tag is array
Public method Static IsAttribute(string) Gets if element name is an attribute
Public method Static IsFromTemplate(string) Gets if tag is a user template
Public method Static LoadFromXML(string, string) Load XML file and copy to tag
Public method Static LoadFromXML(string, UserType) Load XML file and copy to tag
Public method Static LoadFromXMLString(string, string) Load XML data and copy to tag
Public method Static LoadFromXMLString(string, UserType) Load XML data and copy to tag
Public method Static LoadSnapshotTags(string) Load tag values from file.
Public method Static LogException(Exception, string) Log exception on TraceWindow
Public method Static Logical(object) Return logic from a value
Public method Static LogicalNot(object) Return inverse logic from a value
Public method Static NormalizeAssetName(string) Normalize asset name
Public method Static NormalizeObjectName(string, bool) Normalize object name
Public method Static PreloadObject(string) Preload main properties from object name. Used to improvement performance while getting object by first ime
Public method Static PrepareTK(ObjectServer) Internal Use
Public method Static PrintXPS(string, bool, bool) Print a XPS document to printer
Public method Static RefreshElements() Force refresh values of elements
Public method Static SaveImageAsPDF(string, string, bool, int, string, string, string, string, string) Save image as PDF file
Public method Static SaveSnapshotTags(string) Save current tag values to file.
Public method Static SaveToXML(string, UserType) Create XML file from tag
Public method Static SaveToXML(string, string)
Public method Static SaveToXMLString(UserType) Create XML data from tag
Public method Static SaveToXMLString(string) Create XML data from tag
Public method Static SetObjectValue(string, object) Sets new value for object
Public method Static SetObjectValue(string, object, int, DateTimeOffset, bool) Sets new value for object
Public method Static ShowOnScreenKeyboard(string, bool, Action<BooleanStringStringString>) Displays screen keyboard
Public method Static TIf(bool, object, object)
Public method Static To(Type, object) Performs convert to type
Public method Static To<T>(object) Performs convert to type
Public method Static ToDateTime(object) Performs convert to DateTime
Public method Static ToDateTimeOffset(object, DateTimeKind) Performs convert to DateTimeOffset
Public method Static ToTimeSpan(object) Performs convert to TimeStamp
Public method Static Toggle(object) Toggles value
Public method Static Trace(string, eTraceType, string, string, string, string) Log a message to TraceWindow
Public method Static UnitsConversion(string, string) Convert tag value to new unit
Public method Static UnzipFile(string, string) Extracts all the files in the specified zip archive to a directory on the file system.
Public method Static WaitSyncMarker(object, TimeSpan) Wait all objects will be syncronized to server
Public method Static ZipFile(string, string) Creates a zip archive that contains the files and directories from the specified directory.
Top

.NET Framework

Supported in: 4.6.2, 4.7