ServerProtocol Class

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

Remarks

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

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
      Microsoft.SqlServer.Management.Smo.Wmi.ProtocolBase
        Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocol

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.