Share via


VirtualMachineGetResponse.RoleType Property

Gets or sets the type of the role for the Virtual Machine.

Namespace: Microsoft.WindowsAzure.Management.Compute.Models
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Usage

'Usage
Dim instance As VirtualMachineGetResponse
Dim value As VirtualMachineRoleType

value = instance.RoleType

instance.RoleType = value

Syntax

'Declaration
Public Property RoleType As VirtualMachineRoleType
public VirtualMachineRoleType RoleType { get; set; }
public:
property VirtualMachineRoleType RoleType {
    VirtualMachineRoleType get ();
    void set (VirtualMachineRoleType value);
}
/** @property */
public VirtualMachineRoleType get_RoleType ()

/** @property */
public void set_RoleType (VirtualMachineRoleType value)
public function get RoleType () : VirtualMachineRoleType

public function set RoleType (value : VirtualMachineRoleType)

Property Value

The type.

Remarks

The only supported value is PersistentVMRole.

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

VirtualMachineGetResponse Class
VirtualMachineGetResponse Members
Microsoft.WindowsAzure.Management.Compute.Models Namespace