📄 csharp.web.webservice.xft
字号:
<?xml version="1.0"?>
<Template author="Tom Schroeter" version="1.0">
<Config
name = "${res:Templates.File.WebService.Name}"
icon = "C#.File.NewClass"
category = "C#"
subcategory = "ASP.NET"
defaultname = "WebService${Number}.asmx"
language = "C#"
/>
<Description>${res:Templates.File.WebService.Description}</Description>
<!--
Special new file templates:
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
${FullName} -> Full generated path name
${FileName} -> File name with extension
${FileNameWithoutExtension} -> File name without extension
${Extension} -> Extension in the form ".cs"
${Path} -> Full path of the file
-->
<Files>
<File name="${Path}/${FileNameWithoutExtension}.cs" dependentUpon="${FileName}" language="C#"><![CDATA[${StandardHeader.C#}
using System;
using System.Web.Services;
namespace ${StandardNamespace}
{
/// <summary>
/// Description of ${ClassName}
/// </summary>
[WebService
( Name = "${ClassName}",
Description = "${ClassName}",
Namespace = "http://www.${ClassName}.example"
)
]
public class ${ClassName} : WebService
{
public ${ClassName}()
{
}
[WebMethod]
public string Status()
{
string s = string.Format("Time: {0}", DateTime.Now);
return s;
}
}
}
]]></File>
<File name="${FullName}"><![CDATA[
<%@ WebService Class="${StandardNamespace}.${ClassName}" Language="C#" %>
]]> </File>
</Files>
<AdditionalOptions/>
</Template>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -