Edit

Share via


ExtensionManagementHttpClient.GetInstalledExtensionByNameAsync Method

Definition

[Preview API] Get an installed extension by its publisher and extension name.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Services.ExtensionManagement.WebApi.InstalledExtension> GetInstalledExtensionByNameAsync (string publisherName, string extensionName, System.Collections.Generic.IEnumerable<string> assetTypes = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetInstalledExtensionByNameAsync : string * string * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Services.ExtensionManagement.WebApi.InstalledExtension>

Parameters

publisherName
String

Name of the publisher. Example: "fabrikam".

extensionName
String

Name of the extension. Example: "ops-tools".

assetTypes
IEnumerable<String>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to