次の方法で共有


PhysicalMemory プロパティ

SQL Server のインスタンスを実行しているコンピュータにインストールされている合計 RAM 容量 (MB 単位) を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<DisplayNameKeyAttribute("Server_PhysicalMemoryName")> _
<DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")> _
ReadOnly Property PhysicalMemory As Integer
    Get
'使用
Dim instance As IServerInformation
Dim value As Integer

value = instance.PhysicalMemory
[DisplayNameKeyAttribute("Server_PhysicalMemoryName")]
[DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")]
int PhysicalMemory { get; }
[DisplayNameKeyAttribute(L"Server_PhysicalMemoryName")]
[DisplayDescriptionKeyAttribute(L"Server_PhysicalMemoryDesc")]
property int PhysicalMemory {
    int get ();
}
[<DisplayNameKeyAttribute("Server_PhysicalMemoryName")>]
[<DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")>]
abstract PhysicalMemory : int
function get PhysicalMemory () : int

プロパティ値

型: System. . :: . .Int32
Int32