FileVersionInfo.IsPreRelease Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that specifies whether the file is a development version, rather than a commercially released product.
public:
property bool IsPreRelease { bool get(); };
public bool IsPreRelease { get; }
member this.IsPreRelease : bool
Public ReadOnly Property IsPreRelease As Boolean
Property Value
true
if the file is prerelease; otherwise, false
.
Examples
The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it displays whether this version is a prerelease version in a text box. This code assumes textBox1
has been instantiated.
private:
void GetIsPreRelease()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo =
FileVersionInfo::GetVersionInfo( Environment::SystemDirectory + "\\Notepad.exe" );
// Print whether the file is a prerelease version.
textBox1->Text = String::Concat( "File is prerelease version ", myFileVersionInfo->IsPreRelease );
}
private void GetIsPreRelease()
{
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
// Print whether the file is a prerelease version.
textBox1.Text = "File is prerelease version " + myFileVersionInfo.IsPreRelease;
}
Private Sub GetIsPreRelease()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
' Print whether the file is a prerelease version.
textBox1.Text = "File is prerelease version " & myFileVersionInfo.IsPreRelease
End Sub
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET