StacClient.ReplaceCollectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ReplaceCollectionAsync(String, StacCollection, CancellationToken) |
Replace an existing collection in the GeoCatalog instance. |
| ReplaceCollectionAsync(String, RequestContent, RequestContext) |
[Protocol Method] Replace an existing collection in the GeoCatalog instance
|
ReplaceCollectionAsync(String, StacCollection, CancellationToken)
- Source:
- StacClient.cs
Replace an existing collection in the GeoCatalog instance.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>> ReplaceCollectionAsync(string collectionId, Azure.Analytics.PlanetaryComputer.StacCollection body, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceCollectionAsync : string * Azure.Analytics.PlanetaryComputer.StacCollection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
override this.ReplaceCollectionAsync : string * Azure.Analytics.PlanetaryComputer.StacCollection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
Public Overridable Function ReplaceCollectionAsync (collectionId As String, body As StacCollection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StacCollection))
Parameters
- collectionId
- String
Catalog collection id.
- body
- StacCollection
Request collection body.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
collectionId or body is null.
collectionId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
ReplaceCollectionAsync(String, RequestContent, RequestContext)
- Source:
- StacClient.cs
[Protocol Method] Replace an existing collection in the GeoCatalog instance
- 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> ReplaceCollectionAsync(string collectionId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member ReplaceCollectionAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.ReplaceCollectionAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ReplaceCollectionAsync (collectionId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- collectionId
- String
Catalog collection id.
- content
- RequestContent
The content to send as the body of the request.
- 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 content is null.
collectionId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.