TranslatorLibrary Constructor(string, string)

TranslatorLibrary.TranslatorLibrary(string, string) Constructor

Bing
 

The TranslatorLibrary Constructor function creates an instance of the TranslatorLibrary Class.

Published date: October 21, 2013

public TranslatorLibrary(string clientID, string clientSecret)

clientId

The Client ID for Azure Data Market authentication.

clientSecret

The Client secret for Azure Data Market authentication.

The TranslatorControl creates the TranslatorLibarary in its constructor function and keeps the ClientID and ClientSecret values up to date, so there is rarely a need to call this constructor directly.

Example

The following example initializes a TranslatorLibrary instance.

// Initialize a TranslatorLibrary instance.
var translatorApi = Bing.Translator.TranslatorLibrary("CLIENTID", "CLIENTSECRET");

Requirements

Minimum Supported Client

Windows 8.1

Required Extensions

Bing Translator Control

Namespace

Bing.Translator

Show:
© 2016 Microsoft