xInfo.productName Method

Definition

Retrieves the name of the product.

public:
 static System::String ^ productName();
public static string productName ();
static member productName : unit -> string
Public Shared Function productName () As String

Returns

A string that contains the name of the product.

Remarks

The following example returns system information, including the name of the product.

str environment() 
{ 
    return xInfo::buildNo() + ' - '  
        + xInfo::compilationDate() + ' - '  
        + xInfo::dbName() + ' - '  
        + xInfo::osName() + ' - '  
        + xInfo::productName() + ' - '  
        + xInfo::releaseVersion(); 
}

Applies to