The ScriptDefinition type exposes the following members.
Methods
Name | Description | |
---|---|---|
Create |
Creates a new instance of the ScriptDefinition class. A ScriptDefinition object created by this method
will not be trusted for all users until it is saved by a member of the ScriptAuthor group. Once created,
the ScriptDefinition object defines the script, but it will not be stored in the document until it is added
to the ScriptManager, by calling AddScriptDefinition(ScriptDefinition),
or by using the returned ScriptDefinition object to create a new HtmlTextAreaScript
and calling Add(HtmlTextAreaScript) on an Scripts instance.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsEquivalentTo |
Determines whether the specified ScriptDefinition, is equivalent to this instance.
Equivalent is defined by: the script Name, Description, ScriptCode, Language, Parameters, WrapInTransaction
are all equal. This method does not check the trusted status of the script
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WithDescription |
Creates a copy of this ScriptDefinition instance with a new description. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithDescription("New Description").WithScriptCode("import System"); | |
WithLanguage |
Creates a copy of this ScriptDefinition instance with an updated ScriptLanguage. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithName("New Name").WithLanguage(ScriptLanguage.IronPython277); | |
WithName |
Creates a copy of this ScriptDefinition instance with a new name. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithName("New Name").WithScriptCode("import System"); | |
WithParameters |
Creates a copy of this ScriptDefinition instance with an updated ScriptParameterCollection. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithName("New Name").WithScriptParameters(newScriptParameterCollection); | |
WithScriptCode |
Creates a copy of this ScriptDefinition instance with new script code. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithName("New Name").WithScriptCode("import System"); | |
WithWrapInTransaction |
Creates a copy of this ScriptDefinition instance with an updated wrapInTransaction flag. Can be chained with other
.With methods. i.e. var newScriptDefinition = oldScriptDefinition.WithName("New Name").WithWrapInTransaction(false); |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ISerializableGetObjectData |
Implements ISerializable.
|
See Also