WebService 接口
表示此网站项目实现的一个 Web 服务,如同将此网站引用添加到项目时以 Visual Studio 生成的 .asmx 文件表示一样。
命名空间: VsWebSite
程序集: VsWebSite.Interop(在 VsWebSite.Interop.dll 中)
语法
声明
<GuidAttribute("298682BA-70DD-40BF-95E9-4DD4293BA56D")> _
Public Interface WebService
[GuidAttribute("298682BA-70DD-40BF-95E9-4DD4293BA56D")]
public interface WebService
[GuidAttribute(L"298682BA-70DD-40BF-95E9-4DD4293BA56D")]
public interface class WebService
[<GuidAttribute("298682BA-70DD-40BF-95E9-4DD4293BA56D")>]
type WebService = interface end
public interface WebService
WebService 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
AppRelativeUrl | 获取 .asmx 文件相对于此网站项目的根 URL 的相对路径。 | |
ClassFileItem | 获取表示 Web 服务的类文件项。 | |
ClassName | 获取表示此 Web 服务的类的名称。 | |
ContainingProject | 获取对 DTE 对象(包含此 Web 服务)中的此项目的引用。 | |
DTE | 获取对包含此 Web 服务的项目所在的 DTE2 对象的引用。 | |
FileCodeModel | 获取 .asmx 文件的 FileCodeModel 对象。 | |
ProjectItem | 获取项目项。 | |
URL | 用于此 Web 服务的 .asmx 文件的 URL。 |
页首
备注
此类的对象仅可以通过使用 VSWebSite 对象的 WebServices 集合属性中的某一项获得。