Computer 类
The Computer type represents a computer in the Utility domain, including certain physical properties that indicate the computer's performance and loading.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
Microsoft.SqlServer.Management.Utility..::..Computer
命名空间: Microsoft.SqlServer.Management.Utility
程序集: Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)
语法
声明
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", _
True)> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class Computer _
Inherits SfcInstance
用法
Dim instance As Computer
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",
true)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class Computer : SfcInstance
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Utility.FacetSR",
true)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class Computer sealed : public SfcInstance
[<SealedAttribute>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",
true)>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type Computer =
class
inherit SfcInstance
end
public final class Computer extends SfcInstance
Computer 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
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. |
页首
属性
名称 | 说明 | |
---|---|---|
AbstractIdentityKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 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. (从 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. (从 SfcInstance 继承。) | |
PropertyStorageProvider | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
State | Returns the state of the SfcInstance object. (从 SfcInstance 继承。) | |
Urn | Returns the uniform resource name of the SfcInstance object. (从 SfcInstance 继承。) | |
Volumes | Represents a collection of Volume objects. |
页首
方法
名称 | 说明 | |
---|---|---|
AlterImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CheckObjectCreated | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CheckObjectState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CreateIdentityKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CreateImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Discover | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
DropImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Equals | (从 Object 继承。) | |
Finalize | (从 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 继承。) | |
MarkForDropImpl | Returns a value that indicates the existing objects to be dropped. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
MarkRootAsConnected | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
MoveImpl | Indicates the new parent object to move in an instance. 不要在您的代码中直接引用此成员。它支持 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 继承。) | |
PostAlter | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostCreate | Indicates the default implementor that creates the execution result. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostDrop | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostMove | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostRename | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Refresh | Refreshes the object's properties by reading them from the server. (从 SfcInstance 继承。) | |
RenameImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
ResetKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Serialize | Serializes the instance to XML. (从 SfcInstance 继承。) | |
ToString | Returns a string representation of the instance Urn. (从 SfcInstance 继承。) | |
UpdateUIPropertyState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Validate | Indicates the basic child object's validation. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
propertyChanged | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PropertyChanged | CLS-compliant event for property changes. (从 SfcInstance 继承。) | |
propertyMetadataChanged | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (从 SfcInstance 继承。) |
页首
注释
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.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。