Click or drag to resize

DiscoveryAddEnvironment Method (DiscoverySuccessCallbackEnvironment, DiscoveryFailCallback, String, String, Int32, 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,
	string name = null,
	string description = null,
	int size = 0,
	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.
name (Optional)
Type: SystemString
The name of the environment to be created.
description (Optional)
Type: SystemString
The description of the environment to be created.
size (Optional)
Type: SystemInt32
The size of the environment to be created. See pricing.
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