DiscoverySearchPattern.GetDiscoveryReference(String) Method

Definition

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

C#
public abstract System.Web.Services.Discovery.DiscoveryReference GetDiscoveryReference(string filename);

Parameters

filename
String

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 DiscoverySearchPattern implements the GetDiscoveryReference method by returning its associated concrete class derived from DiscoveryReference.

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

Applies to

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1