ManagedInstanceCollection.Contains 메서드 (String)

Returns a value indicating whether the collection contains the managed instance with the specified name.

네임스페이스:  Microsoft.SqlServer.Management.Utility
어셈블리:  Microsoft.SqlServer.Management.Utility(Microsoft.SqlServer.Management.Utility.dll)

구문

‘선언
Public Function Contains ( _
    name As String _
) As Boolean
‘사용 방법
Dim instance As ManagedInstanceCollection 
Dim name As String 
Dim returnValue As Boolean 

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

매개 변수

  • name
    유형: System.String
    A String value that specifies the name of the managed instance to check

반환 값

유형: System.Boolean
A Boolean value that indicates whether the specified managed instance is present in the collection. If true, the instance is present. Otherwise, false.

참고 항목

참조

ManagedInstanceCollection 클래스

Contains 오버로드

Microsoft.SqlServer.Management.Utility 네임스페이스