SqlVulnerabilityAssessmentScanCollection.ExistsAsync 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 |
|---|---|
| ExistsAsync(String, Guid, CancellationToken) |
Provides a compatibility shim for the ExistsAsync operation preserved from the previous public API surface. |
| ExistsAsync(String, String, CancellationToken) |
Checks to see if the resource exists in azure.
|
ExistsAsync(String, Guid, CancellationToken)
Provides a compatibility shim for the ExistsAsync operation preserved from the previous public API surface.
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string scanId, Guid workspaceId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (scanId As String, workspaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))
Parameters
- scanId
- String
The value preserved for API compatibility.
- workspaceId
- Guid
The value preserved for API compatibility.
- cancellationToken
- CancellationToken
The value preserved for API compatibility.
Returns
The compatibility result.
Exceptions
scanId is an empty string, and was expected to be non-empty.
scanId is null.
Applies to
ExistsAsync(String, String, CancellationToken)
Checks to see if the resource exists in azure.
- Request Path. : /{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}.
- Operation Id. : ScanV2s_Get.
- Default Api Version. : 2026-04-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string scanId, string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (scanId As String, Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))
Parameters
- scanId
- String
- databaseName
- String
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
scanId is null.
scanId is an empty string, and was expected to be non-empty.