EnumMatchingSPs 方法 (String, Boolean)

列舉包含定義中指定之字串的預存程序清單。

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

語法

'宣告
Public Function EnumMatchingSPs ( _
    description As String, _
    includeSystem As Boolean _
) As UrnCollection
'用途
Dim instance As Database
Dim description As String
Dim includeSystem As Boolean
Dim returnValue As UrnCollection

returnValue = instance.EnumMatchingSPs(description, _
    includeSystem)
public UrnCollection EnumMatchingSPs(
    string description,
    bool includeSystem
)
public:
UrnCollection^ EnumMatchingSPs(
    String^ description, 
    bool includeSystem
)
member EnumMatchingSPs : 
        description:string * 
        includeSystem:bool -> UrnCollection 
public function EnumMatchingSPs(
    description : String, 
    includeSystem : boolean
) : UrnCollection

參數

  • includeSystem
    型別:System. . :: . .Boolean
    Boolean 值,這個值會指定傳回的清單是否要包含系統預存程序。
    如果為 True,則包含系統預存程序,否則為 False。

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .UrnCollection
包含資料庫之相符預存程序清單的 UrnCollection 物件值。

備註

The stored procedure is defined in the TextBody property. It is the text in the TextBody property that is compared to the value in the description parameter.