共用方式為


PublicationMonitorCollection 類別

A collection of PublicationMonitor objects that represents publications at the Distributor.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Replication. . :: . .ReplicationBaseCollection
    Microsoft.SqlServer.Replication..::..PublicationMonitorCollection

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public NotInheritable Class PublicationMonitorCollection _
    Inherits ReplicationBaseCollection
'用途
Dim instance As PublicationMonitorCollection
public sealed class PublicationMonitorCollection : ReplicationBaseCollection
public ref class PublicationMonitorCollection sealed : public ReplicationBaseCollection
[<SealedAttribute>]
type PublicationMonitorCollection =  
    class
        inherit ReplicationBaseCollection
    end
public final class PublicationMonitorCollection extends ReplicationBaseCollection

PublicationMonitorCollection 型別公開下列成員。

屬性

  名稱 說明
公用屬性 Count Gets the number of objects in the referenced collection. (繼承自 ReplicationBaseCollection。)
公用屬性 IsSynchronized Gets whether or not access to the collection is synchronized and is therefore thread-safe. (繼承自 ReplicationBaseCollection。)
公用屬性 Item[ ( [ ( Int32] ) ] ) Gets a PublicationMonitor object in the collection by index number.
公用屬性 Item[ ( [ ( String, String] ) ] ) Gets a PublicationMonitor object in the collection by publication database and publication name.
公用屬性 SyncRoot Gets an object that can be used to synchronize access to the collection. (繼承自 ReplicationBaseCollection。)

上層

方法

  名稱 說明
公用方法 CopyTo(Array, Int32) Copies the collection to an array. (繼承自 ReplicationBaseCollection。)
公用方法 CopyTo(PublicationMonitorCollection, Int32) Makes a copy of the collection.
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetEnumerator Gets an enumerator that is used to iterate through the objects in a collection. (繼承自 ReplicationBaseCollection。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 InitList 基礎結構。 (繼承自 ReplicationBaseCollection。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Refresh Refreshes the collection. (繼承自 ReplicationBaseCollection。)
公用方法 ToString (繼承自 Object。)

上層

備註

A PublicationMonitor object in the PublicationMonitorCollection can be accessed using an [Int32] index value or a [String,String] index value that is the name of the publication database and the name of the publication.

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

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.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。