Share via


ServerProtocol-Klasse

The ServerProtocol class represents a network protocol installed on a server instance that allows communication with SQL Server clients over a network.

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

Syntax

'Declaration
Public NotInheritable Class ServerProtocol _
    Inherits ProtocolBase
'Usage
Dim instance As ServerProtocol
public sealed class ServerProtocol : ProtocolBase
public ref class ServerProtocol sealed : public ProtocolBase
[<SealedAttribute>]
type ServerProtocol =  
    class
        inherit ProtocolBase
    end
public final class ServerProtocol extends ProtocolBase

Hinweise

With the ServerProtocol class you can:

  • Modify the display name of the protocol.

  • Enable or disable the protocol.

  • View the IP addresses associated with the protocol.

  • Create a set of attributes for the protocol.

To get or set ServerProtocol object properties or run ServerProtocol methods, users must be a member of the sysadmin fixed server role.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.