Partager via


Propriété PerformanceCounters.DoCount

Returns Boolean value that determines whether the performance counter is enabled.

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

Syntaxe

'Déclaration
Public Shared Property DoCount As Boolean 
    Get 
    Set
'Utilisation
Dim value As Boolean 

value = PerformanceCounters.DoCount 

PerformanceCounters.DoCount = value
public static bool DoCount { get; set; }
public:
static property bool DoCount {
    bool get ();
    void set (bool value);
}
static member DoCount : bool with get, set
static function get DoCount () : boolean 
static function set DoCount (value : boolean)

Valeur de propriété

Type : System.Boolean
A Boolean value that determines whether the performance counter is enabled.If True, it is enabled. Otherwise, False.

Exemples

Utilisation de serveurs liés dans SMO

Voir aussi

Référence

PerformanceCounters Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Serveurs liés (Moteur de base de données)

sp_addlinkedserver (Transact-SQL)