Data Access has been discontinued. Please refer to this page for more information.

MetaInterface

The MetaInterface class represents an interface in the Telerik Data Access metadata model. The MetaInterface class derives from MetaType. During runtime, you could access all interfaces that are available in the current container instance via the Interfaces collection property of the MetadataContainer. The MetaInterface class exposes a collection named Implementations, which represents all MetaType objects that implement this interface.

The following examples shows you how to get information about the interfaces in your model:

private string GetInterfaces(Telerik.OpenAccess.Metadata.MetadataContainer container)
{
   StringBuilder sb = new StringBuilder();
   foreach (MetaInterface metaInterface in container.Interfaces)
   {
       sb.AppendFormat("\nInterfaceName: {0}", metaInterface.Name);
       sb.AppendFormat("\nImplementationsCount: {0}", metaInterface.Implementations.Count);
   }
   return sb.ToString();
}
Private Function GetInterfaces(ByVal container As Telerik.OpenAccess.Metadata.MetadataContainer) As String
 Dim sb As New StringBuilder()
 For Each _metaInterface As MetaInterface In container.Interfaces
  sb.AppendFormat(vbLf & "InterfaceName: {0}", _metaInterface.Name)
  sb.AppendFormat(vbLf & "ImplementationsCount: {0}", _metaInterface.Implementations.Count)
 Next _metaInterface
 Return sb.ToString()
End Function