语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

StacClient.DeleteCollectionAssetAsync Method

Definition

Overloads

Name Description
DeleteCollectionAssetAsync(String, String, RequestContext)

[Protocol Method] Delete an asset from a given collection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteCollectionAssetAsync(String, String, CancellationToken)

Delete an asset from a given collection.

DeleteCollectionAssetAsync(String, String, RequestContext)

Source:
StacClient.cs

[Protocol Method] Delete an asset from a given collection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteCollectionAssetAsync(string collectionId, string assetId, Azure.RequestContext context);
abstract member DeleteCollectionAssetAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteCollectionAssetAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteCollectionAssetAsync (collectionId As String, assetId As String, context As RequestContext) As Task(Of Response)

Parameters

collectionId
String

STAC Collection ID.

assetId
String

STAC Asset ID.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

collectionId or assetId is null.

collectionId or assetId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

DeleteCollectionAssetAsync(String, String, CancellationToken)

Source:
StacClient.cs

Delete an asset from a given collection.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>> DeleteCollectionAssetAsync(string collectionId, string assetId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteCollectionAssetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
override this.DeleteCollectionAssetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
Public Overridable Function DeleteCollectionAssetAsync (collectionId As String, assetId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StacCollection))

Parameters

collectionId
String

STAC Collection ID.

assetId
String

STAC Asset ID.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

collectionId or assetId is null.

collectionId or assetId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to