Compartir a través de


WebService Interface

Represents a Web service implemented by this Web site project, as represented by the .asmx file generated by Visual Studio when the Web site reference was added to the project.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
<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

The WebService type exposes the following members.

Properties

  Name Description
Public property AppRelativeUrl Gets the relative path to the .asmx file from the root URL of the Web site project.
Public property ClassFileItem Gets the class file item that represents the Web service.
Public property ClassName Gets the name of the class that represents the Web service.
Public property ContainingProject Gets a reference to the project in the DTE object that contains this Web service.
Public property DTE Gets a reference to the DTE2 object that contains the project containing this Web service.
Public property FileCodeModel Gets the FileCodeModel object for the .asmx file.
Public property ProjectItem Gets the project item.
Public property URL The URL of the .asmx file for the Web service.

Top

Remarks

An object of this class can be obtained only by using an item in the WebServices collection property of a VSWebSite object.

See Also

Reference

VsWebSite Namespace

VSWebSite

WebServices

DTE2

Other Resources

Referencing Automation Assemblies and the DTE2 Object