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.