ScriptDef Object
A script definition object represents Microsoft® ActiveX® script that you can associate with a method or property definition. A ScriptDef object provides a way to store the implementation of a method in an information model. You can also use ScriptDef to validate properties before storing them in a repository database.
A ScriptDef object is also a RepositoryObject and a RepositoryObjectVersion object. You can also access members that are defined for those objects and members of IReposTypeInfo. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.
When to Use
Use the ScriptDef object to define a method or a property validation rule.
Properties
Property |
Description |
Body |
Contains the body of a script. |
Language |
Contains a string that identifies the language in which the script is written. You can provide script in Microsoft Visual Basic® Scripting Edition (VBScript) and Microsoft JScript®. |
Name |
The name of a ScriptDef object. |
Methods
Collections
Collection |
Description |
UsingClasses |
Class collections for which the script applies |
UsingInterfaces |
Interface collections for which the script applies |
UsingMembers |
Member collections for which the script applies |
See Also
Defining Script Objects
MethodDef Object
RepositoryObject Object
RepositoryObjectVersion Object