Click or drag to resize

DiscoveryAddCollection Method (DiscoverySuccessCallbackCollectionRef, DiscoveryFailCallback, String, String, String, String, DictionaryString, Object)

Adds a collection to a specified environment.

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 AddCollection(
	DiscoverySuccessCallback<CollectionRef> successCallback,
	DiscoveryFailCallback failCallback,
	string environmentID,
	string name,
	string description = null,
	string configurationID = null,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoverySuccessCallbackCollectionRef
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoveryFailCallback
The fail callback.
environmentID
Type: SystemString
The environment identifier.
name
Type: SystemString
The name of the collection to be created.
description (Optional)
Type: SystemString
The description of the collection to be created.
configurationID (Optional)
Type: SystemString
The configuration identifier.
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