Share via


WebReference Interface

Represents a Web reference that is consumed by the Web site.

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

Syntax

'Declaration
<GuidAttribute("DCB348C9-62ED-4332-B90F-077AAC7BAB14")> _
Public Interface WebReference
[GuidAttribute("DCB348C9-62ED-4332-B90F-077AAC7BAB14")]
public interface WebReference
[GuidAttribute(L"DCB348C9-62ED-4332-B90F-077AAC7BAB14")]
public interface class WebReference
[<GuidAttribute("DCB348C9-62ED-4332-B90F-077AAC7BAB14")>]
type WebReference =  interface end
public interface WebReference

The WebReference type exposes the following members.

Properties

  Name Description
Public property ContainingProject Gets a reference to the project in the DTE object that contains this Web reference.
Public property Discomap Gets the discovery map for the Web reference.
Public property DTE Gets a reference to the DTE2 object that contains a Web site reference.
Public property DynamicPropName Gets a property name from the Web site configuration.
Public property DynamicUrl Gets or sets the URL used to access the Web service.
Public property FileCodeModel Gets the FileCodeModel object for the .asmx file.
Public property Namespace Gets the client namespace for the WebReference object.
Public property ProjectItem Gets the ProjectItem.
Public property ServiceDefinitionUrl Gets the URL that was used to get the service definition.
Public property ServiceLocationUrl Gets the service location URL for the first service defined in the WSDL file.
Public property ServiceName Gets the service name of the first service in the WSDL file.
Public property WsdlAppRelativeUrl Get the relative URL for the WSDL file.

Top

Methods

  Name Description
Public method Remove Removes this specific Web reference.
Public method Update Updates this specific Web reference.

Top

Remarks

Each Web reference corresponds to a single Web service description language (WSDL) file, even though multiple services or ports might be included in that WSDL.

See Also

Reference

VsWebSite Namespace

VSWebSite