FileVersionInfo.LegalCopyright 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 파일에 적용되는 저작권 표시를 모두 가져옵니다.
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 버전 정보가 포함되어 있지 않은 경우 등이 포함됩니다.