Класс 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) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.