DataVirtualHardDisk.DiskName Property
Gets or sets the name of the data disk.
Namespace: Microsoft.WindowsAzure.Management.Compute.Models
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Usage
'Usage
Dim instance As DataVirtualHardDisk
Dim value As String
value = instance.DiskName
instance.DiskName = value
Syntax
'Declaration
Public Property DiskName As String
public string DiskName { get; set; }
public:
property String^ DiskName {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_DiskName ()
/** @property */
public void set_DiskName (String value)
public function get DiskName () : String
public function set DiskName (value : String)
Property Value
The name.
Remarks
If the disk that is being added is already registered in the subscription, this property is used to identify the disk to add. If a new disk and the associated VHD are being created by Microsoft Azure, this property is not used and Azure assigns a unique name that is a combination of the deployment name, role name, and identifying number.
The name of the disk must contain only alphanumeric characters, underscores, periods, or dashes. The name must not be longer than 256 characters. The name must not end with period or dash.
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
DataVirtualHardDisk Class
DataVirtualHardDisk Members
Microsoft.WindowsAzure.Management.Compute.Models Namespace