Language

DependencyOfRelationshipCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.Relationships/dependencyOf/{name}.
  • Operation Id. : DependencyOfRelationships_Get.
  • Default Api Version. : 2023-09-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.Relationships.DependencyOfRelationshipResource> GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Relationships.DependencyOfRelationshipResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Relationships.DependencyOfRelationshipResource>
Public Overridable Function GetIfExists (name As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of DependencyOfRelationshipResource)

Parameters

name
String

Name of dependencyOf relationship.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

name is null.

name is an empty string, and was expected to be non-empty.

Applies to