다음을 통해 공유


SmoMetadataProvider.CreateDisconnectedProvider(Server) Method

Definition

Creates a new instance of the Microsoft.SqlServer.Management.SqlParser.MetadataProvider that uses the specified SMO server object to retrieve metadata objects.

public static Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider CreateDisconnectedProvider (Microsoft.SqlServer.Management.Smo.Server server);
static member CreateDisconnectedProvider : Microsoft.SqlServer.Management.Smo.Server -> Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider
Public Shared Function CreateDisconnectedProvider (server As Server) As SmoMetadataProvider

Parameters

server
Server

A SMO Server object that is used to retrieve metadata objects.

Returns

A Microsoft.SqlServer.Management.SmoMetaDataProvider.SmoMetadataProvider object that uses the specified connection to retrive server metadata.

Applies to