Share via


SmoMetadataProvider Class

Represents an IMetadataProvider object that uses the SMO layer to retrieve server metadata objects.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.SqlParser.MetadataProvider.MetadataProviderBase
    Microsoft.SqlServer.Management.SmoMetadataProvider.SmoMetadataProvider

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

Syntax

'Declaration
Public MustInherit Class SmoMetadataProvider _
    Inherits MetadataProviderBase
'Usage
Dim instance As SmoMetadataProvider
public abstract class SmoMetadataProvider : MetadataProviderBase
public ref class SmoMetadataProvider abstract : public MetadataProviderBase
[<AbstractClassAttribute>]
type SmoMetadataProvider =  
    class
        inherit MetadataProviderBase
    end
public abstract class SmoMetadataProvider extends MetadataProviderBase

The SmoMetadataProvider type exposes the following members.

Properties

  Name Description
Public property AfterBindHandler Gets the method that will handle the AfterBind event. (Inherited from MetadataProviderBase.)
Public property BeforeBindHandler Gets the method that will handle the BeforeBind event. (Inherited from MetadataProviderBase.)
Public property BuiltInFunctionLookup Gets an IBuiltInFunctionLookup object that can be used to look up built-in functions and global variables. (Inherited from MetadataProviderBase.)
Public property CollationLookup Gets an ICollationLookup object that can be used to look up system collations. (Inherited from MetadataProviderBase.)
Public property MetadataFactory Gets an IMetadataFactory object that can be used to create metadata objects. (Inherited from MetadataProviderBase.)
Public property Server Gets an IServer object which allows for accessing server-side metadata objects such as databases, schemas, and tables. (Overrides MetadataProviderBase.Server.)
Public property SmoServer Gets a Server object associated with the metadata provider.
Public property SystemDataTypeLookup Gets an ISystemDataTypeLookup object that can be used to look up and retrieve system data types. (Inherited from MetadataProviderBase.)

Top

Methods

  Name Description
Public methodStatic member CreateConnectedProvider(ServerConnection) Creates a new instance of the SmoMetadataProvider class that uses the specified SMO connection to retrieve server metadata objects over the SMO.
Public methodStatic member CreateConnectedProvider(ServerConnection, Int32) Creates a new instance of the SmoMetadataProvider class that uses the specified connection to retrieve server metadata objects over the SMO.
Public methodStatic member CreateDisconnectedProvider Creates a new instance of the SmoMetadataProvider class that uses the specified SMO server object to retrieve metadata objects.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.