Gets all copyright notices that apply to the specified file.
[Visual Basic] Public ReadOnly Property LegalCopyright As String [C#] public string LegalCopyright {get;} [C++] public: __property String* get_LegalCopyright(); [JScript] public function get LegalCopyright() : String;
The copyright notices that apply to the specified file.
This should include the full text of all notices, legal symbols, copyright dates, and so on.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the LegalCopyright in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetCopyright() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "Copyright Notices: " & myFileVersionInfo.LegalCopyright End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace