語言

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 物件,你可以:

  • 判斷電腦是否被叢集化。

  • 找出電腦名稱。

  • 確定電腦中的處理器數量。

  • 確定電腦中的磁碟卷數。

  • 判斷處理器使用率。

  • 判斷上述所有數值的近期時間。

建構函式

名稱 Description
Computer()

初始化 Computer 類別的新執行個體。

Computer(Utility, String)

初始化一個新的類別實例 Computer ,並以指定的父 Utility 物件和指定名稱初始化。

屬性

名稱 Description
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 物件。

方法

名稱 Description
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)

事件

名稱 Description
propertyChanged

請勿在程式碼中直接提及此成員。 它支援 SQL Server 基礎架構。

(繼承來源 SfcInstance)
PropertyChanged

發生於屬性值變更時。

(繼承來源 SfcInstance)
propertyMetadataChanged

請勿在程式碼中直接提及此成員。 它支援 SQL Server 基礎架構。

當屬性元資料值改變時會發生。

(繼承來源 SfcInstance)
PropertyMetadataChanged

當某個物業的元資料發生變化時。

(繼承來源 SfcInstance)

適用於