RoleManagementAttributeNamespaceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /providers/Microsoft.Authorization/attributeNamespaces/{attributeNamespace}.
  • Operation Id. : AttributeNamespaces_Get.
  • Default Api Version. : 2025-12-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAttributeNamespaceResource> GetIfExists(string attributeNamespace, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAttributeNamespaceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Authorization.RoleManagementAttributeNamespaceResource>
Public Overridable Function GetIfExists (attributeNamespace As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of RoleManagementAttributeNamespaceResource)

Parameters

attributeNamespace
String

The name of the attribute namespace to get.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

attributeNamespace is null.

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

Applies to