System.Web.Services.Discovery.DiscoverySearchPattern.GetDiscoveryReference Method

When overridden in a derived class, returns the System.Web.Services.Discovery.DiscoveryReference object for a given file name.

Syntax

public abstract DiscoveryReference GetDiscoveryReference (string filename)

Parameters

filename
The name of a discovery file or a file that appears in a dynamically generated discovery document. For example, an .asmx or .xsd file.

Returns

A file name.

Remarks

A class derived from System.Web.Services.Discovery.DiscoverySearchPattern implements the DiscoverySearchPattern.GetDiscoveryReference(string) method by returning its associated concrete class derived from System.Web.Services.Discovery.DiscoveryReference.

For example, the System.Web.Services.Discovery.ContractSearchPattern class returns a System.Web.Services.Discovery.ContractReference instance that contains the location of an .asmx Web service file and the corresponding dynamically generated Web Services Description Language (WSDL) document.

Requirements

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0