DatasetsOperations.Delete 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
| Delete(String, String, RequestOptions) |
[Protocol Method] Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was deleted successfully or if the DatasetVersion does not exist.
|
| Delete(String, String, CancellationToken) |
Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was deleted successfully or if the DatasetVersion does not exist. |
Delete(String, String, RequestOptions)
- Source:
- DatasetsOperations.cs
[Protocol Method] Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was deleted successfully or if the DatasetVersion does not exist.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult Delete(string name, string version, System.ClientModel.Primitives.RequestOptions options);
abstract member Delete : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.Delete : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function Delete (name As String, version As String, options As RequestOptions) As ClientResult
Parameters
- name
- String
The name of the resource.
- version
- String
The version of the DatasetVersion to delete.
- options
- RequestOptions
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
name or version is null.
name or version is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Delete(String, String, CancellationToken)
- Source:
- DatasetsOperations.cs
Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was deleted successfully or if the DatasetVersion does not exist.
public virtual System.ClientModel.ClientResult Delete(string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
override this.Delete : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
Public Overridable Function Delete (name As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult
Parameters
- name
- String
The name of the resource.
- version
- String
The version of the DatasetVersion to delete.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name or version is null.
name or version is an empty string, and was expected to be non-empty.
Service returned a non-success status code.