Gets the initialization code.

 

   

Syntax
 

[C#]
string GetInitializationCode(PythonEnv env, bool updateNames, bool alwaysUseProvidedNames, StringBuilder code)

 

Throws Exceptions ArgumentException: Thrown when a provided variable/class name is not a valid identifier or when <paramref name="alwaysUseProvidedNames" /> is true and there is a name conflict in the provided variable/class names.

 

   

Params
 
Name Description
env The Python environment.
updateNames Specifies whether the actual, corresponding values used in the code are assigned back to VarVEnvPath, VarStdOutCallback, VarStdErrCallback and ConsoleClassName.
alwaysUseProvidedNames Specifies that an ArgumentException is thrown when provided variable/class names are identical for distinct values. If the value is false, some of the names in the name conflict will be set to a default distinct value.
code A StringBuilder object to receive the initialization code. The value is appended to it. The method will return a null value if this parameter is not null.
return The initialization code if is null and initialization is needed. Otherwise, null.

 

   

Notes
 
Gets the initialization code.

 

   

Example
 
None.