Computer 类

定义

Computer 类型表示公用领域中的计算机,包括指示计算机性能和加载情况的某些物理属性。

public ref class Computer sealed : Microsoft::SqlServer::Management::Sdk::Sfc::SfcInstance
[Microsoft.SqlServer.Management.Facets.EvaluationMode(Microsoft.SqlServer.Management.Dmf.AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[Microsoft.SqlServer.Management.Sdk.Sfc.LocalizedPropertyResources("Microsoft.SqlServer.Management.Utility.FacetSR", true)]
[Microsoft.SqlServer.Management.Sdk.Sfc.PhysicalFacet]
[System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))]
public sealed class Computer : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
[<Microsoft.SqlServer.Management.Facets.EvaluationMode(Microsoft.SqlServer.Management.Dmf.AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.LocalizedPropertyResources("Microsoft.SqlServer.Management.Utility.FacetSR", true)>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.PhysicalFacet>]
[<System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))>]
type Computer = class
    inherit SfcInstance
Public NotInheritable Class Computer
Inherits SfcInstance
继承
Computer
属性

注解

Computer 对象表示效用域中的计算机。 使用该 Computer 对象,你可以:

  • 确定计算机是否为集群。

  • 确定计算机名称。

  • 确定计算机中的处理器数量。

  • 确定计算机中的卷数。

  • 确定处理器的利用率。

  • 确定上述所有数值的更新时间。

构造函数

名称 说明
Computer()

初始化 Computer 类的新实例。

Computer(Utility, String)

初始化一个新的类实例 Computer ,使用指定的父 Utility 对象和指定名称。

属性

名称 说明
AbstractIdentityKey

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CpuMaxClockSpeed

它能获得最高CPU时钟频率。

CpuName

它会得到CPU名称。

ID

获取唯一标识计算机的ID值。

IdentityKey

获得唯一标识该 Computer 对象的关键值。

IsClustered

获得 Boolean 决定计算机是否处于集群中的值。

Metadata

返回关于实例及其域的元数据。

(继承自 SfcInstance)
Name

获取计算机的名称。

Parent

获取该对象的父 Computer 单位Utility对象。

ProcessorUtilization

它能得到处理器利用率的百分比。

Properties

返回集合实例属性。

(继承自 SfcInstance)
PropertyStorageProvider

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
State

返回 SfcInstance 对象的状态。

(继承自 SfcInstance)
Urn

返回 SfcInstance 对象的统一资源名。

(继承自 SfcInstance)
Volumes

表示 对象的集合 Volume

方法

名称 说明
AlterImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CheckObjectCreated()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CheckObjectState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CreateIdentityKey()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CreateImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Discover(ISfcDependencyDiscoveryObjectSink)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
DropImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
GetChildCollection(String)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
GetDomain()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
GetObjectFactory()

获取用于创建新实例的工厂对象。

GetPropertySet()

返回 SfcInstance 对象的属性集合。

(继承自 SfcInstance)
GetTypeMetadataImpl()

通过直接返回正确的TypeMetadata类来表示覆盖的域。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
InitializeUIPropertyState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
MarkForDropImpl(Boolean)

返回一个表示已存物体的值。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
MarkRootAsConnected()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
MoveImpl(SfcInstance)

表示在实例中需要移动的新父对象。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs)

每当任何 SfcInstance 元数据的有效值更新时都会调用。

(继承自 SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs)

每当任何 SfcInstance 属性的有效值更新时都会被调用。

(继承自 SfcInstance)
PostAlter(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostCreate(Object)

表示创建执行结果的默认实现者。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostDrop(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostMove(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostRename(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Refresh()

通过从服务器读取对象属性来刷新属性。

(继承自 SfcInstance)
RenameImpl(SfcKey)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
ResetKey()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Serialize(XmlWriter)

将实例序列化为 XML。

(继承自 SfcInstance)
ToString()

返回实例Urn的字符串表示。

(继承自 SfcInstance)
UpdateUIPropertyState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Validate()

表示基本子对象的验证。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)

活动

名称 说明
propertyChanged

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PropertyChanged

当属性值更改时发生。

(继承自 SfcInstance)
propertyMetadataChanged

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

当属性元数据值发生变化时,就会发生这种情况。

(继承自 SfcInstance)
PropertyMetadataChanged

当某个属性的元数据发生变化时,就会发生这种情况。

(继承自 SfcInstance)

适用于