Compartilhar via


Classe Volume

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

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (em Microsoft.SqlServer.Management.Utility.dll)

Sintaxe

'Declaração
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",  _
    True)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Volume _
    Inherits SfcInstance
'Uso
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

O tipo Volume expõe os membros a seguir.

Construtores

  Nome Descrição
Método público Volume() Initializes a new instance of the Volume class.
Método público Volume(Computer, String) Initializes a new instance of the Volume class with the specified connection.

Início

Propriedades

  Nome Descrição
Propriedade protegida AbstractIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Propriedade pública DeviceId Gets the device Id of the volume instance.
Propriedade pública ID Gets the ID value that uniquely identifies the volume.
Propriedade pública IdentityKey Gets the Key value that uniquely identifies the volume.
Propriedade pública Metadata Returns metadata about the instance and its domain. (Herdado de SfcInstance.)
Propriedade pública Name Gets the String value that specifies the name of the volume.
Propriedade pública Parent Gets the Computer object value that specifies is the parent of the Volume object.
Propriedade pública Properties Returns a collection instance properties. (Herdado de SfcInstance.)
Propriedade protegida State Returns the state of the SfcInstance object. (Herdado de SfcInstance.)
Propriedade pública TotalSpace Gets the total storage capacity of the volume in megabytes.
Propriedade pública TotalSpaceUsed Gets the total used storage on the volume in megabytes.
Propriedade pública TotalSpaceUtilization Gets the space used as a percentage of the total storage capacity of the volume.
Propriedade pública Urn Returns the uniform resource name of the SfcInstance object. (Herdado de SfcInstance.)

Início

Métodos

  Nome Descrição
Método protegido CreateIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Discover Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Equals (Herdado de Object.)
Método protegido GetChildCollection Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetDomain Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetHashCode (Herdado de Object.)
Método públicoMembro estático GetObjectFactory Gets the factory object used to create new instances.
Método público GetPropertySet Returns the set of properties for the SfcInstance object. (Herdado de SfcInstance.)
Método público GetType (Herdado de Object.)
Método protegido GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido InitializeUIPropertyState Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Herdado de SfcInstance.)
Método protegido OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Herdado de SfcInstance.)
Método público Refresh Refreshes the object's properties by reading them from the server. (Herdado de SfcInstance.)
Método protegido ResetKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Serialize Serializes the instance to XML. (Herdado de SfcInstance.)
Método público ToString Returns a string representation of the instance Urn. (Herdado de SfcInstance.)

Início

Eventos

  Nome Descrição
Evento público PropertyChanged CLS-compliant event for property changes. (Herdado de SfcInstance.)
Evento público PropertyMetadataChanged CLS-compliant event for property metadata changes. (Herdado de SfcInstance.)

Início

Comentários

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.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Utility