ServerInstanceCollection 클래스

The ServerInstanceCollection class represents a collection of ServerInstance objects that represent all the instances of SQL Server defined on the parent object.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Wmi
어셈블리:  Microsoft.SqlServer.SqlWmiManagement.dll의 Microsoft.SqlServer.SqlWmiManagement

구문

‘선언
Public NotInheritable Class ServerInstanceCollection _
    Inherits WmiCollectionBase _
    Implements ICollection, IEnumerable
‘사용 방법
Dim instance As ServerInstanceCollection
public sealed class ServerInstanceCollection : WmiCollectionBase, 
    ICollection, IEnumerable
public ref class ServerInstanceCollection sealed : public WmiCollectionBase, 
    ICollection, IEnumerable
[<SealedAttribute>]
type ServerInstanceCollection =  
    class
        inherit WmiCollectionBase
        interface ICollection
        interface IEnumerable
    end
public final class ServerInstanceCollection extends WmiCollectionBase implements ICollection, IEnumerable

주의

A ServerInstanceCollection object can be used to gain access to a set of instances of SQL Server. You can use the Item property to return a specific ServerInstance object.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

상속 계층 구조

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo.Wmi. . :: . .WmiCollectionBase
    Microsoft.SqlServer.Management.Smo.Wmi..::..ServerInstanceCollection

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.