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

MetaView

The MetaView class represents a view in the underlying database. During runtime, you could access all views that are available in the current container instance via the Views collection property of the MetadataContainer.

The MetaView is a derivation of the MetaTable class and is handled in the exact same manner during the runtime. It describes a view from the relational data store. The MetaView object does not bring any additional information.

The following example shows you how to extract information about the views in your database:

private string GetViews(Telerik.OpenAccess.Metadata.MetadataContainer container)
{
   StringBuilder sb = new StringBuilder();
   foreach (MetaView view in container.Views)
   {
       sb.AppendFormat("\nView: {0}", view.Name);
   }
   return sb.ToString();
}
Private Function GetViews(ByVal container As Telerik.OpenAccess.Metadata.MetadataContainer) _
    As String
 Dim sb As New StringBuilder()
 For Each view As MetaView In container.Views
  sb.AppendFormat(vbLf & "View: {0}", view.Name)
 Next view
 Return sb.ToString()
End Function