Partager via


PhysicalMemory propriété

Gets the total RAM installed, in MB, for the computer that is running the instance of SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayNameKeyAttribute("Server_PhysicalMemoryName")> _
<DisplayDescriptionKeyAttribute("Server_PhysicalMemoryDesc")> _
ReadOnly Property PhysicalMemory As Integer
    Get
'Utilisation
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

Valeur de la propriété

Type : System. . :: . .Int32
Int32