Click or drag to resize

DiscoveryAddEnvironment Method (DiscoverySuccessCallbackEnvironment, DiscoveryFailCallback, DictionaryString, Object, DictionaryString, Object)

Creates a new environment. You can only create one environment per service instance.An attempt to create another environment will result in an error. The size of the new environment can be controlled by specifying the size parameter.

Namespace:  IBM.Watson.DeveloperCloud.Services.Discovery.v1
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool AddEnvironment(
	DiscoverySuccessCallback<Environment> successCallback,
	DiscoveryFailCallback failCallback,
	Dictionary<string, Object> addEnvironmentData,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoverySuccessCallbackEnvironment
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoveryFailCallback
The fail callback.
addEnvironmentData
Type: System.Collections.GenericDictionaryString, Object
The AddEnvironmentData.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object
Optional custom data.

Return Value

Type: Boolean
True if the call succeeds, false if the call is unsuccessful.
See Also