Share via


SmoBuilder.GetSmoHierarchy Method

Returns the disconnected server hierarchy based on the IServer binder metadata.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Shared Function GetSmoHierarchy ( _
    metadataServer As IServer _
) As Server
'Usage
Dim metadataServer As IServer
Dim returnValue As Server

returnValue = SmoBuilder.GetSmoHierarchy(metadataServer)
public static Server GetSmoHierarchy(
    IServer metadataServer
)
public:
static Server^ GetSmoHierarchy(
    IServer^ metadataServer
)
static member GetSmoHierarchy : 
        metadataServer:IServer -> Server 
public static function GetSmoHierarchy(
    metadataServer : IServer
) : Server

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.Server
A Server object containing the server hierarchy data.