Click or drag to resize

StorageDevice Structure

Defines an object representing information about a storage device

Namespace:  ABB.Robotics.Controllers.FileSystemDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public struct StorageDevice

The StorageDevice type exposes the following members.

Properties
  NameDescription
Public propertyEnabled
Specifies whether the device is enabled or not.
Public propertyHidden
Specifies whether the device is configured to be hidden or not.
Public propertyName
Gets the name of the device.
Public propertyReadOnly
Specifies whether the device is read only or not.
Public propertyType
Gets the type of the device.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Examples
This example are using the different methods for storage devices. To be able to use any storage devices the controller object must be created. In this example it is named "myControllerRef".
private void readMyDevices()
{
    FileSystem f = myControllerRef.FileSystem;
    StorageDeviceCollection col = f.StorageDevices;
    string txt = string.Empty;
    foreach (StorageDevice sd in col)
    {
        if (sd.Enabled)
        {
            txt = txt + string.Format("{0}\n",sd.Name);
        }
    }
    // Do something...
}
See Also