Partager via


Propriété IServerPerformanceFacet.MaxWorkerThreads

Gets the MaxWorkerThreads property for an instance of SQL Server.

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

Syntaxe

'Déclaration
<DisplayNameKeyAttribute("MaxWorkerThreadsName")> _
<DisplayDescriptionKeyAttribute("MaxWorkerThreadsDesc")> _
<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)> _
Property MaxWorkerThreads As Integer 
    Get 
    Set
'Utilisation
Dim instance As IServerPerformanceFacet 
Dim value As Integer 

value = instance.MaxWorkerThreads

instance.MaxWorkerThreads = value
[DisplayNameKeyAttribute("MaxWorkerThreadsName")]
[DisplayDescriptionKeyAttribute("MaxWorkerThreadsDesc")]
[PostConfigurationActionAttribute(PostConfigurationAction.RestartService)]
int MaxWorkerThreads { get; set; }
[DisplayNameKeyAttribute(L"MaxWorkerThreadsName")]
[DisplayDescriptionKeyAttribute(L"MaxWorkerThreadsDesc")]
[PostConfigurationActionAttribute(PostConfigurationAction::RestartService)]
property int MaxWorkerThreads {
    int get ();
    void set (int value);
}
[<DisplayNameKeyAttribute("MaxWorkerThreadsName")>]
[<DisplayDescriptionKeyAttribute("MaxWorkerThreadsDesc")>]
[<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)>]
abstract MaxWorkerThreads : int with get, set
function get MaxWorkerThreads () : int 
function set MaxWorkerThreads (value : int)

Valeur de propriété

Type : System.Int32
The MaxWorkerThreads property for an instance of SQL Server.

Voir aussi

Référence

IServerPerformanceFacet Interface

Espace de noms Microsoft.SqlServer.Management.Smo