Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebReference Interface

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

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

public interface WebReference

The WebReference type exposes the following members.

Public propertyContainingProjectGets a reference to the project in the DTE object that contains this Web reference.
Public propertyDiscomapGets the discovery map for the Web reference.
Public propertyDTEGets a reference to the DTE2 object that contains a Web site reference.
Public propertyDynamicPropNameGets a property name from the Web site configuration.
Public propertyDynamicUrlGets or sets the URL used to access the Web service.
Public propertyFileCodeModelGets the FileCodeModel object for the .asmx file.
Public propertyNamespaceGets the client namespace for the WebReference object.
Public propertyProjectItemGets the ProjectItem.
Public propertyServiceDefinitionUrlGets the URL that was used to get the service definition.
Public propertyServiceLocationUrlGets the service location URL for the first service defined in the WSDL file.
Public propertyServiceNameGets the service name of the first service in the WSDL file.
Public propertyWsdlAppRelativeUrlGet the relative URL for the WSDL file.

Public methodRemoveRemoves this specific Web reference.
Public methodUpdateUpdates this specific Web reference.

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.

© 2015 Microsoft