AssemblyInfo.Title 属性

定义

获取与应用程序关联的标题。

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

属性值

包含String与应用程序关联的项AssemblyTitleAttribute

例外

示例

此示例使用 My.Application.Info.Title 属性显示与应用程序关联的标题。

MsgBox("Application title: " & My.Application.Info.Title)

注解

My.Application.Info.Title 属性获取与应用程序关联的标题。

可以通过在 Assembly InformationTitle0> 的值来更改标题, 可从 Project Designer 窗格的 Application3 访问。

按项目类型提供可用性

项目类型 可用的
Windows 窗体应用程序 Yes
类库 Yes
控制台应用程序 Yes
Windows 窗体控件库 Yes
Web 控件库
Windows 服务 Yes
网站

适用于

另请参阅