SoapMethodCollectionBase.Contains 方法 (String, String)

Verifies whether the specified object exists in the referenced collection.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function Contains ( _
    name As String, _
    methodNamespace As String _
) As Boolean
用法
Dim instance As SoapMethodCollectionBase 
Dim name As String 
Dim methodNamespace As String 
Dim returnValue As Boolean 

returnValue = instance.Contains(name, _
    methodNamespace)
public bool Contains(
    string name,
    string methodNamespace
)
public:
bool Contains(
    String^ name, 
    String^ methodNamespace
)
member Contains : 
        name:string * 
        methodNamespace:string -> bool
public function Contains(
    name : String, 
    methodNamespace : String
) : boolean

参数

  • methodNamespace
    类型:System.String
    A String value that specifies the namespace of the SOAP method.

返回值

类型:System.Boolean
A Boolean value that verifies whether the specified object exists in the referenced collection.If True, the specified object exists in the referenced collection.If False, the specified object does not exist in the referenced collection.

示例

处理 SMO 异常

请参阅

参考

SoapMethodCollectionBase 类

Contains 重载

Microsoft.SqlServer.Management.Smo 命名空间