FileVersionInfo.LegalCopyright Eigenschap

Definitie

Hiermee haalt u alle copyrightberichten op die van toepassing zijn op het opgegeven bestand.

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

Waarde van eigenschap

De auteursrechtaanduidingen die van toepassing zijn op het opgegeven bestand.

Voorbeelden

In het volgende voorbeeld wordt aanroepen GetVersionInfo om het FileVersionInfo voor Kladblok op te halen. Vervolgens wordt het LegalCopyright in een tekstvak afgedrukt. Bij deze code wordt ervan uitgegaan dat textBox1 deze is geïnstantieerd.

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

Opmerkingen

Dit moet de volledige tekst bevatten van alle kennisgevingen, juridische symbolen, copyrightdatums, enzovoort, of null als het bestand geen versie-informatie bevat.

Van toepassing op