Поделиться через


Класс Volume

The Volume type represents information about a volume or disk partition on a computer in the SQL Server Utility domain. 

Иерархия наследования

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.Utility.Volume

Пространство имен:  Microsoft.SqlServer.Management.Utility
Сборка:  Microsoft.SqlServer.Management.Utility (в Microsoft.SqlServer.Management.Utility.dll)

Синтаксис

'Декларация
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",  _
    True)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Volume _
    Inherits SfcInstance
'Применение
Dim instance As Volume
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[PhysicalFacetAttribute]
public sealed class Volume : SfcInstance
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[PhysicalFacetAttribute]
public ref class Volume sealed : public SfcInstance
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)>]
[<PhysicalFacetAttribute>]
type Volume =  
    class 
        inherit SfcInstance 
    end
public final class Volume extends SfcInstance

Тип Volume обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод Volume() Initializes a new instance of the Volume class.
Открытый метод Volume(Computer, String) Initializes a new instance of the Volume class with the specified connection.

В начало

Свойства

  Имя Описание
Защищенное свойство AbstractIdentityKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытое свойство DeviceId Gets the device Id of the volume instance.
Открытое свойство ID Gets the ID value that uniquely identifies the volume.
Открытое свойство IdentityKey Gets the Key value that uniquely identifies the volume.
Открытое свойство Metadata Returns metadata about the instance and its domain. (Производный от SfcInstance.)
Открытое свойство Name Gets the String value that specifies the name of the volume.
Открытое свойство Parent Gets the Computer object value that specifies is the parent of the Volume object.
Открытое свойство Properties Returns a collection instance properties. (Производный от SfcInstance.)
Защищенное свойство State Returns the state of the SfcInstance object. (Производный от SfcInstance.)
Открытое свойство TotalSpace Gets the total storage capacity of the volume in megabytes.
Открытое свойство TotalSpaceUsed Gets the total used storage on the volume in megabytes.
Открытое свойство TotalSpaceUtilization Gets the space used as a percentage of the total storage capacity of the volume.
Открытое свойство Urn Returns the uniform resource name of the SfcInstance object. (Производный от SfcInstance.)

В начало

Методы

  Имя Описание
Защищенный метод CreateIdentityKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Discover Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Equals (Производный от Object.)
Защищенный метод GetChildCollection Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод GetDomain Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод GetHashCode (Производный от Object.)
Открытый методСтатический элемент GetObjectFactory Gets the factory object used to create new instances.
Открытый метод GetPropertySet Returns the set of properties for the SfcInstance object. (Производный от SfcInstance.)
Открытый метод GetType (Производный от Object.)
Защищенный метод GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Защищенный метод InitializeUIPropertyState Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Защищенный метод OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Производный от SfcInstance.)
Защищенный метод OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Производный от SfcInstance.)
Открытый метод Refresh Refreshes the object's properties by reading them from the server. (Производный от SfcInstance.)
Защищенный метод ResetKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Serialize Serializes the instance to XML. (Производный от SfcInstance.)
Открытый метод ToString Returns a string representation of the instance Urn. (Производный от SfcInstance.)

В начало

События

  Имя Описание
Открытое событие PropertyChanged CLS-compliant event for property changes. (Производный от SfcInstance.)
Открытое событие PropertyMetadataChanged CLS-compliant event for property metadata changes. (Производный от SfcInstance.)

В начало

Замечания

The Volume object represents information about a volume or disk partition on a computer in the SQL Server Utility domain. Using the Volume object, you can:

  • Determine whether the volume is a mount point, and its location.

  • Determine the total disk space, the space used and the space utilization.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Utility