IScriptDef is derived from IUnknown, IDispatch, and IRepositoryDispatch.
The IScriptDef interface allows the user to associate a Microsoft® ActiveX® script definition with a method without requiring the user to create an aggregation wrapper.
Use the IScriptDef interface to:
Properties | Description |
---|---|
Body | The storage for the body of the script. A variable length string, not to exceed 64 KB in length. |
Language | The storage for the language the script is written in. Valid values are Microsoft JScript® and Microsoft Visual Basic® Scripting Edition (VBScript).
This string is a maximum of 255 characters. |
Method | Description |
---|---|
ValidateScript | Validates a script's syntax. It returns S_OK if the script can be executed; otherwise it returns a script engine specific error. |
Collection | Description |
---|---|
UsingClasses | Collection of classes for which this script is used |
UsingInterfaces | Collection of interfaces for which this script is used |
UsingMembers | Collection of members for which this script is used |