Udostępnij przez


FileVersionInfo.LegalCopyright Właściwość

Definicja

Pobiera wszystkie powiadomienia o prawach autorskich, które mają zastosowanie do określonego pliku.

public:
 property System::String ^ LegalCopyright { System::String ^ get(); };
public string? LegalCopyright { get; }
public string LegalCopyright { get; }
member this.LegalCopyright : string
Public ReadOnly Property LegalCopyright As String

Wartość właściwości

Uwagi dotyczące praw autorskich, które mają zastosowanie do określonego pliku.

Przykłady

Poniższe przykładowe wywołania GetVersionInfo w celu pobrania FileVersionInfo elementu dla Notatnika. Następnie drukuje element LegalCopyright w polu tekstowym. W tym kodzie przyjęto założenie textBox1 , że zostało utworzone wystąpienie.

private:
    void GetCopyright()
    {
        // Get the file version for the notepad.
        FileVersionInfo^ myFileVersionInfo =
            FileVersionInfo::GetVersionInfo( Environment::SystemDirectory + "\\Notepad.exe" );

        // Print the copyright notice.
        textBox1->Text = String::Concat( "Copyright notice: ", myFileVersionInfo->LegalCopyright );
    }
private void GetCopyright()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print the copyright notice.
    textBox1.Text = "Copyright notice: " + myFileVersionInfo.LegalCopyright;
}
Private Sub GetCopyright()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print the copyright notice.
    textBox1.Text = "Copyright notice: " & myFileVersionInfo.LegalCopyright
End Sub

Uwagi

Powinno to zawierać pełny tekst wszystkich powiadomień, symboli prawnych, dat praw autorskich itd., lub null jeśli plik nie zawiera informacji o wersji.

Dotyczy