IVirtualMachineOSImageOperations.BeginSharingAsync Method (String, String, CancellationToken)
Share an already replicated OS image. This operation is only for publishers. You have to be registered as image publisher with Windows Azure to be able to call this.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<AzureOperationResponse> BeginSharingAsync(
string imageName,
string permission,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ BeginSharingAsync(
String^ imageName,
String^ permission,
CancellationToken cancellationToken
)
abstract BeginSharingAsync :
imageName:string *
permission:string *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function BeginSharingAsync (
imageName As String,
permission As String,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
imageName
Type: System.StringThe name of the virtual machine image to share.
permission
Type: System.StringThe sharing permission: public, msdn, or private.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
IVirtualMachineOSImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top