Information.PhysicalMemory プロパティ

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

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public ReadOnly Property PhysicalMemory As Integer 
    Get
'使用
Dim instance As Information 
Dim value As Integer 

value = instance.PhysicalMemory
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public int PhysicalMemory { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
property int PhysicalMemory {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
member PhysicalMemory : int
function get PhysicalMemory () : int

プロパティ値

型: System.Int32
インストールされている合計 RAM 容量 (MB 単位) を示す Int32 値です。

使用例

SMO での SQL Server の構成

関連項目

参照

Information クラス

Microsoft.SqlServer.Management.Smo 名前空間