SecurityContactCollection.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(SecurityContactName, CancellationToken) |
Checks to see if the resource exists in azure.
|
| ExistsAsync(String, CancellationToken) |
Provides a compatibility shim for the ExistsAsync operation preserved from the previous public API surface. |
ExistsAsync(SecurityContactName, CancellationToken)
- Source:
- SecurityContactCollection.cs
Checks to see if the resource exists in azure.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}.
- Operation Id. : SecurityContacts_Get.
- Default Api Version. : 2023-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(Azure.ResourceManager.SecurityCenter.Models.SecurityContactName securityContactName, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.ResourceManager.SecurityCenter.Models.SecurityContactName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.ResourceManager.SecurityCenter.Models.SecurityContactName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (securityContactName As SecurityContactName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))
Parameters
- securityContactName
- SecurityContactName
Name of the security contact object.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
ExistsAsync(String, CancellationToken)
- Source:
- SecurityContactCollection.cs
- Source:
- SecurityContactCollection.cs
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 securityContactName, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (securityContactName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))
Parameters
- securityContactName
- String
The value preserved for API compatibility.
- cancellationToken
- CancellationToken
The value preserved for API compatibility.
Returns
The compatibility result.
Exceptions
securityContactName is an empty string, and was expected to be non-empty.
securityContactName is null.