VirtualMachineOSImageOperationsExtensions.BeginSharingAsync Method
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)
Usage
'Usage
Dim operations As IVirtualMachineOSImageOperations
Dim imageName As String
Dim permission As String
Dim returnValue As Task(Of AzureOperationResponse)
returnValue = VirtualMachineOSImageOperationsExtensions.BeginSharingAsync(operations, imageName, permission)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function BeginSharingAsync ( _
operations As IVirtualMachineOSImageOperations, _
imageName As String, _
permission As String _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute]
public static Task<AzureOperationResponse> BeginSharingAsync (
IVirtualMachineOSImageOperations operations,
string imageName,
string permission
)
[ExtensionAttribute]
public:
static Task<AzureOperationResponse^>^ BeginSharingAsync (
IVirtualMachineOSImageOperations^ operations,
String^ imageName,
String^ permission
)
/** @attribute ExtensionAttribute() */
public static Task<AzureOperationResponse> BeginSharingAsync (
IVirtualMachineOSImageOperations operations,
String imageName,
String permission
)
ExtensionAttribute
public static function BeginSharingAsync (
operations : IVirtualMachineOSImageOperations,
imageName : String,
permission : String
) : Task<AzureOperationResponse>
Parameters
- operations
Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
- imageName
Required. The name of the virtual machine image to share.
- permission
Required. The sharing permission: public, msdn, or private.
Return Value
A standard service response including an HTTP status code and request ID.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
VirtualMachineOSImageOperationsExtensions Class
VirtualMachineOSImageOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace