SmoMetadataProvider.CreateConnectedProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateConnectedProvider(ServerConnection) |
Creates a new instance of the Microsoft.SqlServer.Management.SqlParser.MetadataProvider that uses the specified SMO connection to retrieve server metadata objects over the SMO. |
CreateConnectedProvider(ServerConnection, Int32) |
Creates a new instance of the Microsoft.SqlServer.Management.SqlParser.MetadataProvider that uses the specified connection to retrieve server metadata objects over the SMO. |
CreateConnectedProvider(ServerConnection)
Creates a new instance of the Microsoft.SqlServer.Management.SqlParser.MetadataProvider that uses the specified SMO connection to retrieve server metadata objects over the SMO.
public static Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider CreateConnectedProvider (Microsoft.SqlServer.Management.Common.ServerConnection connection);
static member CreateConnectedProvider : Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider
Public Shared Function CreateConnectedProvider (connection As ServerConnection) As SmoMetadataProvider
Parameters
- connection
- ServerConnection
A ServerConnection object that is used to retrieve server metadata objects.
Returns
A Microsoft.SqlServer.Management.SmoMetaDataProvider.SmoMetadataProvider object that uses the specified connection to retrive server metadata.
Applies to
CreateConnectedProvider(ServerConnection, Int32)
Creates a new instance of the Microsoft.SqlServer.Management.SqlParser.MetadataProvider that uses the specified connection to retrieve server metadata objects over the SMO.
public static Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider CreateConnectedProvider (Microsoft.SqlServer.Management.Common.ServerConnection connection, int refreshDbListMillisecond);
static member CreateConnectedProvider : Microsoft.SqlServer.Management.Common.ServerConnection * int -> Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider
Public Shared Function CreateConnectedProvider (connection As ServerConnection, refreshDbListMillisecond As Integer) As SmoMetadataProvider
Parameters
- connection
- ServerConnection
A ServerConnection object that is used to retrieve server metadata objects.
- refreshDbListMillisecond
- Int32
An Int32 value that specifies the time interval, in milliseconds, between database list refreshes. The database refresh updates the list of accessible databases, basing this evaluation on whether the database is on or offline, and whether the database is in single or multi-user mode.
Returns
A Microsoft.SqlServer.Management.SmoMetaDataProvider.SmoMetadataProvider object that uses the specified connection to retrive server metadata.