DiscoverySearchPattern.GetDiscoveryReference(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, returns the DiscoveryReference object for a given file name.
public:
abstract System::Web::Services::Discovery::DiscoveryReference ^ GetDiscoveryReference(System::String ^ filename);
public abstract System.Web.Services.Discovery.DiscoveryReference GetDiscoveryReference (string filename);
abstract member GetDiscoveryReference : string -> System.Web.Services.Discovery.DiscoveryReference
Public MustOverride Function GetDiscoveryReference (filename As String) As DiscoveryReference
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.