Partager via


ScalingPlanPersonalScheduleCollection.GetIfExists Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}
  • IdScalingPlanPersonalSchedules_Get d’opération
public virtual Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanPersonalScheduleResource> GetIfExists (string scalingPlanScheduleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanPersonalScheduleResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanPersonalScheduleResource>
Public Overridable Function GetIfExists (scalingPlanScheduleName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ScalingPlanPersonalScheduleResource)

Paramètres

scalingPlanScheduleName
String

Nom de l’objet ScalingPlanSchedule.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

scalingPlanScheduleName est une chaîne vide et devait être non vide.

scalingPlanScheduleName a la valeur null.

S’applique à