Поделиться через


Класс ServerProtocolPropertyCollection

The ServerProtocolPropertyCollection class represents a collection of ServerProtocolProperty objects that represent all the attributes of the server protocol defined on the parent object.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Management.Smo.Wmi.ProtocolPropertyCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocolPropertyCollection

Пространство имен:  Microsoft.SqlServer.Management.Smo.Wmi
Сборка:  Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)

Синтаксис

'Декларация
Public NotInheritable Class ServerProtocolPropertyCollection _
    Inherits ProtocolPropertyCollection
'Применение
Dim instance As ServerProtocolPropertyCollection
public sealed class ServerProtocolPropertyCollection : ProtocolPropertyCollection
public ref class ServerProtocolPropertyCollection sealed : public ProtocolPropertyCollection
[<SealedAttribute>]
type ServerProtocolPropertyCollection =  
    class 
        inherit ProtocolPropertyCollection 
    end
public final class ServerProtocolPropertyCollection extends ProtocolPropertyCollection

Тип ServerProtocolPropertyCollection обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство Count Gets the number of ProtocolProperty objects in the referenced collection. (Производный от ProtocolPropertyCollection.)
Открытое свойство IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe. (Производный от ProtocolPropertyCollection.)
Открытое свойство Item[Int32] Gets a ProtocolPropertyCollection object in the collection by index number. (Производный от ProtocolPropertyCollection.)
Открытое свойство Item[String] Gets a ProtocolProperty object in the collection by name. (Производный от ProtocolPropertyCollection.)
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the collection. (Производный от ProtocolPropertyCollection.)

В начало

Методы

  Имя Описание
Открытый метод Contains Checks whether the specified key value exists in the collection. (Производный от ProtocolPropertyCollection.)
Открытый метод CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified. (Производный от ProtocolPropertyCollection.)
Открытый метод Equals (Производный от Object.)
Открытый метод GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection. (Производный от ProtocolPropertyCollection.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод ICollection.CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified. (Производный от ProtocolPropertyCollection.)

В начало

Замечания

A ServerProtocolPropertyCollection object can be used to gain access to a set of attributes of the server protocol.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.

Примеры

Использование коллекций

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo.Wmi