SecurityContactCollection.Exists 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 |
|---|---|
| Exists(SecurityContactName, CancellationToken) |
Checks to see if the resource exists in azure.
|
| Exists(String, CancellationToken) |
Provides a compatibility shim for the Exists operation preserved from the previous public API surface. |
Exists(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 Azure.Response<bool> Exists(Azure.ResourceManager.SecurityCenter.Models.SecurityContactName securityContactName, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : Azure.ResourceManager.SecurityCenter.Models.SecurityContactName * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : Azure.ResourceManager.SecurityCenter.Models.SecurityContactName * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (securityContactName As SecurityContactName, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)
Parameters
- securityContactName
- SecurityContactName
Name of the security contact object.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Exists(String, CancellationToken)
- Source:
- SecurityContactCollection.cs
- Source:
- SecurityContactCollection.cs
Provides a compatibility shim for the Exists operation preserved from the previous public API surface.
public virtual Azure.Response<bool> Exists(string securityContactName, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (securityContactName As String, Optional cancellationToken As CancellationToken = Nothing) As 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.