IServerPerformanceFacet.MaxWorkerThreads Property

Gets the MaxWorkerThreads property for an instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

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

value = instance.MaxWorkerThreads

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

Property Value

Type: System.Int32
Int32