共用方式為


SystemMessageCollection 類別

The SystemMessageCollection class represents a collection of SystemMessage objects that represent all the system messages on the instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Class SystemMessageCollection _
    Inherits MessageCollectionBase
'用途
Dim instance As SystemMessageCollection
public class SystemMessageCollection : MessageCollectionBase
public ref class SystemMessageCollection : public MessageCollectionBase
type SystemMessageCollection =  
    class
        inherit MessageCollectionBase
    end
public class SystemMessageCollection extends MessageCollectionBase

備註

A SystemMessageCollection object can be used to gain access to a set of system messages. You can use the Item property to return a specific SystemMessage object.

範例

使用集合

執行緒安全性

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