NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Application.CompanyName

Gets the company name associated with the application.

[Visual Basic]
Public Shared ReadOnly Property CompanyName As String
[C#]
public static string CompanyName {get;}
[C++]
public: __property static String* get_CompanyName();
[JScript]
public static function get CompanyName() : String;

Property Value

The company name.

Example [Visual Basic]

The following example gets the properties of the Application class and displays them in a MessageBox. It assumes that Button1 has been placed on a form.

[Visual Basic]

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
   MessageBox.Show "Company Name: " & Application.CompanyName & vbnewline & _
      "Product Name: " & Application.ProductName & vbnewline & _
      "Product Version: " & Application.ProductVersion & vbnewline & _
      "Start Up Path: " & Application.StartUpPath & vbnewline & _
      "Local User Application Data Path: " & Application.LocalUserAppDataPath & vbnewline & _
      "Roaming User Application Data Path: " & Application.UserAppDataPath
End Sub

See Also

Application Class | Application Members | System.WinForms Namespace | ProductName | ProductVersion