Clase Computer
The Computer type represents a computer in the Utility domain, including certain physical properties that indicate the computer's performance and loading.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Microsoft.SqlServer.Management.Utility.Computer
Espacio de nombres: Microsoft.SqlServer.Management.Utility
Ensamblado: Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Sintaxis
'Declaración
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", _
True)> _
<PhysicalFacetAttribute> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class Computer _
Inherits SfcInstance
'Uso
Dim instance As Computer
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",
true)]
[PhysicalFacetAttribute]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class Computer : SfcInstance
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Utility.FacetSR",
true)]
[PhysicalFacetAttribute]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class Computer sealed : public SfcInstance
[<SealedAttribute>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",
true)>]
[<PhysicalFacetAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type Computer =
class
inherit SfcInstance
end
public final class Computer extends SfcInstance
El tipo Computer expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
Computer() | Initializes a new instance of the Computer class. | |
Computer(Utility, String) | Initializes a new instance of the Computer class with the specified parent Utility object and the specified name. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
AbstractIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
CpuMaxClockSpeed | Gets the maximum CPU clock speed. | |
CpuName | Gets the CPU name. | |
ID | Gets the ID value that uniquely identifies the computer. | |
IdentityKey | Gets the key value that uniquely identifies the Computer object. | |
IsClustered | Gets the Boolean value that determines whether the computer is in a cluster. | |
Metadata | Returns metadata about the instance and its domain. (Se hereda de SfcInstance.) | |
Name | Gets the name of the computer. | |
Parent | Gets the Utility object that is the parent of the Computer object. | |
ProcessorUtilization | Gets the processor utilization in percentage points. | |
Properties | Returns a collection instance properties. (Se hereda de SfcInstance.) | |
State | Returns the state of the SfcInstance object. (Se hereda de SfcInstance.) | |
Urn | Returns the uniform resource name of the SfcInstance object. (Se hereda de SfcInstance.) | |
Volumes | Represents a collection of Volume objects. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
CreateIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Discover | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Equals | (Se hereda de Object.) | |
GetChildCollection | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
GetDomain | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
GetHashCode | (Se hereda de Object.) | |
GetObjectFactory | Gets the factory object used to create new instances. | |
GetPropertySet | Returns the set of properties for the SfcInstance object. (Se hereda de SfcInstance.) | |
GetType | (Se hereda de Object.) | |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
InitializeUIPropertyState | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (Se hereda de SfcInstance.) | |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (Se hereda de SfcInstance.) | |
Refresh | Refreshes the object's properties by reading them from the server. (Se hereda de SfcInstance.) | |
ResetKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Serialize | Serializes the instance to XML. (Se hereda de SfcInstance.) | |
ToString | Returns a string representation of the instance Urn. (Se hereda de SfcInstance.) |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
PropertyChanged | CLS-compliant event for property changes. (Se hereda de SfcInstance.) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (Se hereda de SfcInstance.) |
Arriba
Comentarios
The Computer object represents a computer in the Utility domain. Using the Computer object, you can:
Determine whether the computer is clustered.
Determine the name of the computer.
Determine the number of processors in the computer.
Determine the number of volumes in the computer.
Determine the processor utilization.
Determine how recent all the above values are.
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.