Export (0) Print
Expand All

FileVersionInfo.LegalTrademarks Property

Gets the trademarks and registered trademarks that apply to the file.

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

Property Value

The trademarks and registered trademarks that apply to the file.

Remarks

The legal trademarks include the full text of all notices, legal symbols, and trademark numbers.

Example

The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it prints the LegalTrademarks in a text box. This code assumes textBox1 has been instantiated.

[Visual Basic] 
Private Sub GetTrademarks()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print the trademarks.
    textBox1.Text = "Trademarks: " & myFileVersionInfo.LegalTrademarks
End Sub 'GetTrademarks

[C#] 
private void GetTrademarks() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print the trademarks.
    textBox1.Text = "Trademarks: " + myFileVersionInfo.LegalTrademarks;
 }
    

[C++] 
private:
void GetTrademarks() {
    // Get the file version for the notepad.
    FileVersionInfo* myFileVersionInfo = FileVersionInfo::GetVersionInfo(S"%systemroot%\\Notepad.exe");
 
    // Print the trademarks.
    textBox1->Text = String::Format( S"Trademarks: {0}", myFileVersionInfo->LegalTrademarks );
 }
    

[JScript] 
private function GetTrademarks() {
    //Get the file version for the notepad.
    var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    //Print the trademarks.
    textBox1.Text = "Trademarks: " + myFileVersionInfo.LegalTrademarks;
 }
    

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FileVersionInfo Class | FileVersionInfo Members | System.Diagnostics Namespace

Show:
© 2014 Microsoft