如何用代碼給Windows服務加上描述???使之安裝以後在服務控制台裏可以看到該描述?? thanks~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ms-help://MS.MSDNQTR.2003FEB.2052/cpref/html/frlrfsystemserviceprocessserviceinstallerclassdisplaynametopic.htm i can't find this page~ could you copy its content to here for me?? .NET Framework Class Library ServiceInstaller.DisplayName Property [C#]See AlsoServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming RequirementsPlatforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security: Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code LanguageC#C++JScriptVisual BasicShow AllIndicates the friendly name that identifies the service to the user.[Visual Basic]Public Property DisplayName As String[C#]public string DisplayName {get; set;}[C++]public: __property String* get_DisplayName();public: __property void set_DisplayName(String*);[JScript]public function get DisplayName() : String;public function set DisplayName(String);Property ValueThe name associated with the service, used frequently for interactive tools.ResThe DisplayName is used, for example, in the Service Control Manager to provide a user-readable descriptive name for the service. The DisplayName is a registry value, but is never used as a registry key. Therefore, restrictions on the ServiceName property value do not apply. ServiceName is used as the HKEY_LOCAL_MACHINES\System\CurentControlSet\Services registry key, so it is restricted.The display name is never used by the install utility to identify the service, so there are no restrictions on the choice of name, as there is for the ServiceName property.RequirementsPlatforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security: Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code See AlsoServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming Syntax based on .NET Framework version 1.1.Documentation version 1.1.0.--------------------------------------------------------------------------------Send comments on this topic. © 2001-2002 Microsoft Corporation. All rights reserved. 给你个中文的 .NET Framework 类库 ServiceInstaller.DisplayName 属性请参见ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程 要求平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: 对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库 语言C#C++JScriptVisual Basic全部显示指示向用户标识服务的友好名称。[Visual Basic]Public Property DisplayName As String[C#]public string DisplayName {get; set;}[C++]public: __property String* get_DisplayName();public: __property void set_DisplayName(String*);[JScript]public function get DisplayName() : String;public function set DisplayName(String);属性值与服务关联的名称,常用于交互工具。备注例如,DisplayName 用在“服务控制管理器”中为服务提供用户可读的描述性名称。DisplayName 是一个注册表值,但从不用作注册表项。因此,对 ServiceName 属性值的限制并不适用。ServiceName 用作 HKEY_LOCAL_MACHINES\System\CurentControlSet\Services 注册表项,因此它是受限制的。安装实用工具从不使用显示名称来标识服务,因此对名称选择没有像对 ServiceName 属性一样的限制。要求平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: 对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库 请参见ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程 --------------------------------------------------------------------------------发送有关此主题的意见 © 2001-2002 Microsoft Corporation。保留所有权利。 改的仍是名字唷,我需要改描述嗄,怎改啊??thanks~ 捺就修改注册表HKEY_LOCAL_MACHINES\System\CurentControlSet\Services\服务名\Description .ascx传参问题 新手求教 新手问题..创建数据库. 注册表里数据类型的问题 请问winform程序中datagrid中怎么给中间某些列加横向滚动条? 一个WinForm窗体执行Invoke的问题 网站页面模板怎么实现???求一个简单示例。。。。。。 winform中將TextBox控件的Enabled設為false時TextBox的背景顏色變成灰色,可以設置為其它顏色嗎? 求一正则表达式啊 给分问题 怎样用正则表达式解决这个问题? 请教:如何用C#从文件中读取数据 C#中如何得到操作系统的当前用户名。。在线等、
ServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming
Requirements
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security: Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
Language
C#C++JScriptVisual BasicShow All
Indicates the friendly name that identifies the service to the user.[Visual Basic]
Public Property DisplayName As String[C#]
public string DisplayName {get; set;}[C++]
public: __property String* get_DisplayName();
public: __property void set_DisplayName(String*);[JScript]
public function get DisplayName() : String;
public function set DisplayName(String);Property Value
The name associated with the service, used frequently for interactive tools.Res
The DisplayName is used, for example, in the Service Control Manager to provide a user-readable descriptive name for the service. The DisplayName is a registry value, but is never used as a registry key. Therefore, restrictions on the ServiceName property value do not apply. ServiceName is used as the HKEY_LOCAL_MACHINES\System\CurentControlSet\Services registry key, so it is restricted.The display name is never used by the install utility to identify the service, so there are no restrictions on the choice of name, as there is for the ServiceName property.Requirements
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security: Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
ServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.0.
--------------------------------------------------------------------------------Send comments on this topic. © 2001-2002 Microsoft Corporation. All rights reserved.
ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程
要求
平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: 对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库
语言
C#C++JScriptVisual Basic全部显示
指示向用户标识服务的友好名称。[Visual Basic]
Public Property DisplayName As String[C#]
public string DisplayName {get; set;}[C++]
public: __property String* get_DisplayName();
public: __property void set_DisplayName(String*);[JScript]
public function get DisplayName() : String;
public function set DisplayName(String);属性值
与服务关联的名称,常用于交互工具。备注
例如,DisplayName 用在“服务控制管理器”中为服务提供用户可读的描述性名称。DisplayName 是一个注册表值,但从不用作注册表项。因此,对 ServiceName 属性值的限制并不适用。ServiceName 用作 HKEY_LOCAL_MACHINES\System\CurentControlSet\Services 注册表项,因此它是受限制的。安装实用工具从不使用显示名称来标识服务,因此对名称选择没有像对 ServiceName 属性一样的限制。要求
平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: 对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库
请参见
ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程
--------------------------------------------------------------------------------发送有关此主题的意见 © 2001-2002 Microsoft Corporation。保留所有权利。
HKEY_LOCAL_MACHINES\System\CurentControlSet\Services\服务名\Description