Application::ProductName Property

 

Gets the product name associated with this application.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property String^ ProductName {
	static String^ get();
}

Property Value

Type: System::String^

The product name.

ProductName is taken from the metadata of the assembly containing the main form of the current application. You can set it by setting AssemblyProductAttribute inside of your assembly manifest. For more information, see Assembly Manifest.

The following code example gets this property and displays its value in a text box. The example requires that textBox1 has been placed on a form.

private:
   void PrintProductName()
   {
      textBox1->Text = "The product name is: {0}",
         Application::ProductName;
   }

.NET Framework
Available since 1.1
Return to top
Show: