MockableProgramEnrollmentResourceGroupResource.GetEduEnrollment Method

Definition

Gets the specified edu enrollment.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgramEnrollment/eduEnrollments/{enrollmentName}.
  • Operation Id. : EduEnrollments_Get.
  • Default Api Version. : 2026-03-01-preview.
public virtual Azure.Response<Azure.ResourceManager.ProgramEnrollment.EduEnrollmentResource> GetEduEnrollment(string enrollmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEduEnrollment : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ProgramEnrollment.EduEnrollmentResource>
override this.GetEduEnrollment : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ProgramEnrollment.EduEnrollmentResource>
Public Overridable Function GetEduEnrollment (enrollmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of EduEnrollmentResource)

Parameters

enrollmentName
String

The name of the edu enrollment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

enrollmentName is null.

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

Applies to