DiscoveryClientResult.DiscoveryClientResult(Type, String, String) Constructor

Initializes a new instance of the DiscoveryClientResult class and sets the ReferenceTypeName property to referenceType, the Url property to url and the Filename property to filename.

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)

public:
DiscoveryClientResult (
	Type^ referenceType, 
	String^ url, 
	String^ filename
)
public DiscoveryClientResult (
	Type referenceType, 
	String url, 
	String filename
)
public function DiscoveryClientResult (
	referenceType : Type, 
	url : String, 
	filename : String
)
Not applicable.

Parameters

referenceType

Name of the class representing the type of reference in the discovery document. Sets the ReferenceTypeName property.

url

URL for the reference. Sets the Url property.

filename

Name of the file in which the reference was saved. Sets the Filename property.

// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult =
   gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid,
   "http://localhost/Discovery/Service1_cs.asmx?disco","Service1_cs.disco" );

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );

// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
    new DiscoveryClientResult(System.Web.Services.
    Discovery.DiscoveryDocumentReference.class.ToType(),
    "http://localhost/Discovery/Service1_jsl.asmx?disco",
    "Service1_jsl.disco");

// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: