SystemInformationEvent.ServicePack 屬性
取得最新的作業系統 service pack 安裝在系統上的名稱。
命名空間: Microsoft.VisualStudio.IntelliTrace
組件: Microsoft.IntelliTrace.11.0.0 (在 Microsoft.IntelliTrace.11.0.0.dll 中)
語法
'宣告
Public ReadOnly Property ServicePack As String
public string ServicePack { get; }
public:
property String^ ServicePack {
String^ get ();
}
member ServicePack : string with get
function get ServicePack () : String
屬性值
備註
如果已經安裝此 hotfix 之後,此字串是空的。 從 GetVersionEx 中,擷取這個值。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。