SourceProfile.DatabaseName Property

The database name (or identifier) of this set of connection parameters.

        [C#]
 public string DatabaseName { get; } 
        [Visual Basic] 
 Public ReadOnly Property DatabaseName As String 
        [Visual RPG]
 BegProp DatabaseName Type(*String) Access(*Public)
BegGet
Property Value

String. Read-only. Returns the parameter passed to the SourceProfileconstructor which created this object. If this SourceProfile was instantiated by other means, the value is an empty string.

Examples
        
          [C#]
        
  /* This code displays all of the *PUBLIC database
   * names, along with their descriptive text, to the list view
   * "lvDbNames" whose view is set to "View.Details". */
  ListViewItem newItem;
  SourceProfile currentProfile;
  foreach(string name in SourceProfile.GetNames(true))
  {
      currentProfile = new SourceProfile(name);
      newItem = new ListViewItem(currentProfile.DatabaseName);
      newItem.SubItems.Add(currentProfile.Text);
      lvDbNames.Items.Add(newItem);
  }
        
          [Visual Basic]
        
  ' This code displays all of the *PUBLIC database
  ' names, along with their descriptive text, to the listview
  ' "lvDbNames" whose view is set to "View.Details". 
  Dim newItem As ListViewItem
  Dim currentProfile As SourceProfile
  For Each name As String In SourceProfile.GetNames(True)
      currentProfile = New SourceProfile(name)
      newItem = New ListViewItem(currentProfile.DatabaseName)
      newItem.SubItems.Add(currentProfile.Text)
      lvDbNames.Items.Add(newItem)
  Next
Requirements

Namespace: ASNA.DataGate.Providers

Assembly: ASNA DataGate Client

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 8.1 Pro, Windows 10

See Also