C# Класс Org.IdentityConnectors.Framework.Common.Objects.ScriptContextBuilder

Builds an ScriptContext.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddScriptArgument ( String name, Object value ) : ScriptContextBuilder

Adds or sets an argument to pass to the script.

Build ( ) : ScriptContext

Creates a ScriptContext.

The scriptLanguage and scriptText must be set prior to calling this.

RemoveScriptArgument ( String name ) : ScriptContextBuilder

Removes the given script argument.

ScriptContextBuilder ( ) : System

Creates an empty builder.

ScriptContextBuilder ( String scriptLanguage, String scriptText ) : System

Creates a builder with the required parameters specified.

Описание методов

AddScriptArgument() публичный Метод

Adds or sets an argument to pass to the script.
public AddScriptArgument ( String name, Object value ) : ScriptContextBuilder
name String The name of the argument. Must not be null.
value Object The value of the argument. Must be one of /// type types that the framework can serialize.
Результат ScriptContextBuilder

Build() публичный Метод

Creates a ScriptContext.
The scriptLanguage and scriptText must be set prior to calling this.
public Build ( ) : ScriptContext
Результат ScriptContext

RemoveScriptArgument() публичный Метод

Removes the given script argument.
public RemoveScriptArgument ( String name ) : ScriptContextBuilder
name String The name of the argument. Must not be null.
Результат ScriptContextBuilder

ScriptContextBuilder() публичный Метод

Creates an empty builder.
public ScriptContextBuilder ( ) : System
Результат System

ScriptContextBuilder() публичный Метод

Creates a builder with the required parameters specified.
public ScriptContextBuilder ( String scriptLanguage, String scriptText ) : System
scriptLanguage String a string that identifies the language /// in which the script is written /// (e.g., bash, csh, /// Perl4 or Python).
scriptText String The text (i.e., actual characters) of the script.
Результат System