100165796.htm

来自「C#高级编程(第三版),顶死你们。。 。up」· HTM 代码 · 共 97 行

HTM
97
字号


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	
        32.3  System.ServiceProcess命名空间
</title></head>
<body>
    <div class="area">

        

        <div class="col1">
            <div class="lineBlue">
            </div>
            <!-- title -->
            <div class="arcTitle">
                <h1>
                    <a href="../16">
                        C#高级编程(第3版)【全文连载】
                    </a>
                </h1>
                <div style="text-align: center; font-size: 15px">
                    <a href="100165796.htm">
                        32.3  System.ServiceProcess命名空间
                    </a>
                </div>
                <div style="text-align: center; font-size: 15px">
                    <a class="url" href="../../default.htm">http://book.csdn.net/</a>
                    2006-10-13 14:41:00
                </div>
                <div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
                    <div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
                        图书导读
                    </div>
                    <div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
                        <!--导读-->
                        <h1 id="divCurrentNode" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165796.htm'><font color='red'>32.3  System.ServiceProcess命名空间</font></a></h1>
                        <div id="divRelateNode" style="padding-left: 2px">
                        <div style='float:left;width:49%'>·<a href='100165793.htm'>32.2.1  服务程序</a></div><div style='float:right;width:49%'>·<a href='100165794.htm'>32.2.2  服务控制程序</a></div><div style='float:left;width:49%'>·<a href='100165795.htm'>32.2.3  服务配置程序</a></div><div style='float:right;width:49%'>·<a href='100165797.htm'>32.4  创建Windows服务</a></div><div style='float:left;width:49%'>·<a href='100165798.htm'>32.4.1  使用套接字的类库</a></div><div style='float:right;width:49%'>·<a href='100165799.htm'>32.4.2  TcpClient示例</a></div></div>
                    </div>
                </div>
                </div>
            <!-- main -->
            <div id="main">
                <div id="text"> <link href="css.css" rel="stylesheet" type="text/css" /><h3 style='margin-top:11.4pt;margin-right:0cm;FTEL:11.4pt;margin-left:
0cm'><a FTEL="_Toc507815576"><span lang=EN-US>32.3&nbsp; System.ServiceProcess</span></a><span
style='font-family:楷体_GB2312'>命名空间</span></h3>

<p class=MsoNormal style='line-height:17.2pt'><span style='font-family:宋体;
color:black'>在</span><span lang=EN-US style='color:black'>.NET Framework</span><span
style='font-family:宋体;color:black'>中,可以在</span><span lang=EN-US
style='color:black'>System.ServiceProcess</span><span style='font-family:宋体;
color:black'>命名空间中找到实现服务的</span><span lang=EN-US style='color:black'>3</span><span
style='font-family:宋体;color:black'>个部分的服务类:</span></p>

<p class=1 style='margin-left:37.55pt;FTEL:-16.1pt'><span lang=EN-US>●<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
style='font-family:宋体'>从</span><span lang=EN-US>ServiceBase</span><span
style='font-family:宋体'>类继承的类可以实现服务。</span><span lang=EN-US>ServiceBase</span><span
style='font-family:宋体'>类用于注册服务、响应开始和停止请求。</span></p>

<p class=1 style='margin-left:37.55pt;FTEL:-16.1pt'><span lang=EN-US>●<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
lang=EN-US>ServiceController</span><span style='font-family:宋体'>类用于实现服务控制程序。使用这个类,可以把请求发送给服务。</span></p>

<p class=1 style='margin-left:37.55pt;FTEL:-16.1pt'><span lang=EN-US>●<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
style='font-family:宋体'>顾名思义,</span><span lang=EN-US>ServiceProcessInstaller</span><span style='font-family:宋体'>类和</span><span
lang=EN-US>ServiceInstaller</span><span style='font-family:宋体'>类用于安装和配置服务程序。</span><span
lang=EN-US> </span></p>

<p class=MsoNormal style='line-height:17.2pt'><span style='font-family:宋体;
color:black'>下面介绍怎样创建新的服务。</span></p>

</div>
                <!-- page -->
                <div class="page" style="text-align: center">
                    <a href="100165795.htm">上一页</a>&nbsp;&nbsp;&nbsp;<a href="index.html">首页</a>&nbsp;&nbsp;&nbsp;<a href="100165797.htm">下一页</a>
                </div>
                <div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
                    <div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
                        图书导读
                    </div>
                    <div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
                        <!--导读-->
                        <h1 id="divCurrentNode2" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165796.htm'><font color='red'>32.3  System.ServiceProcess命名空间</font></a></h1>
                        <div id="divRealteNod2" style="padding-left: 2px">
                        <div style='float:left;width:49%'>·<a href='100165793.htm'>32.2.1  服务程序</a></div><div style='float:right;width:49%'>·<a href='100165794.htm'>32.2.2  服务控制程序</a></div><div style='float:left;width:49%'>·<a href='100165795.htm'>32.2.3  服务配置程序</a></div><div style='float:right;width:49%'>·<a href='100165797.htm'>32.4  创建Windows服务</a></div><div style='float:left;width:49%'>·<a href='100165798.htm'>32.4.1  使用套接字的类库</a></div><div style='float:right;width:49%'>·<a href='100165799.htm'>32.4.2  TcpClient示例</a></div></div>
                    </div>
                </div>
                </div>
        </div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?