Share via


FileVersionInfo.LegalCopyright 속성

정의

지정된 파일에 적용되는 저작권 표시를 모두 가져옵니다.

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

속성 값

지정된 파일에 적용되는 저작권 표시입니다.

예제

다음 예제에서는 를 호출 GetVersionInfo 하여 메모장에 대한 를 가져옵니다 FileVersionInfo . 그런 다음 텍스트 상자에 를 LegalCopyright 인쇄합니다. 이 코드는 인스턴스화되었다고 가정합니다 textBox1 .

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

설명

여기에는 모든 고지 사항, 법적 기호, 저작권 날짜 등의 전체 텍스트가 포함되어야 하며 파일에 null 버전 정보가 포함되어 있지 않은 경우 등이 포함됩니다.

적용 대상