다음을 통해 공유


AppAttachPackageCollection.CreateOrUpdateAsync Method

Definition

Create or update an App Attach package.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
  • Operation Id: AppAttachPackage_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: AppAttachPackageResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.AppAttachPackageResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string appAttachPackageName, Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.AppAttachPackageResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DesktopVirtualization.AppAttachPackageData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DesktopVirtualization.AppAttachPackageResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, appAttachPackageName As String, data As AppAttachPackageData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppAttachPackageResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

appAttachPackageName
String

The name of the App Attach package.

data
AppAttachPackageData

Object containing App Attach Package definitions.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

appAttachPackageName or data is null.

Applies to