Delen via


Server.SetTraceFlag Method

Sets a trace flag.

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

Syntax

'Declaration
Public Sub SetTraceFlag ( _
    number As Integer, _
    isOn As Boolean _
)
'Usage
Dim instance As Server
Dim number As Integer
Dim isOn As Boolean

instance.SetTraceFlag(number, isOn)
public void SetTraceFlag(
    int number,
    bool isOn
)
public:
void SetTraceFlag(
    int number, 
    bool isOn
)
member SetTraceFlag : 
        number:int * 
        isOn:bool -> unit 
public function SetTraceFlag(
    number : int, 
    isOn : boolean
)

Parameters