Partager via


MaxWorkerThreads propriété

Gets the MaxWorkerThreads property for an instance of SQL Server.

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

Syntaxe

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

value = instance.MaxWorkerThreads

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

Valeur de la propriété

Type : System. . :: . .Int32
Int32