This documentation is archived and is not being maintained.
DiscoveryClientResult Constructor
.NET Framework 1.1
Initializes a new instance of the DiscoveryClientResult class.
Overload List
Initializes a new instance of the DiscoveryClientResult class.
[Visual Basic] Public Sub New()
[C#] public DiscoveryClientResult();
[C++] public: DiscoveryClientResult();
[JScript] public function DiscoveryClientResult();
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.
[Visual Basic] Public Sub New(Type, String, String)
[C#] public DiscoveryClientResult(Type, string, string);
[C++] public: DiscoveryClientResult(Type*, String*, String*);
[JScript] public function DiscoveryClientResult(Type, String, String);
Example
[Visual Basic, C#, C++] Note This example shows how to use one of the overloaded versions of the DiscoveryClientResult constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] ' Initialize a new instance of the DiscoveryClientResult class. Dim myDiscoveryClientResult As New DiscoveryClientResult( _ GetType(System.Web.Services.Discovery.DiscoveryDocumentReference), _ "http://localhost/Discovery/Service1_vb.asmx?disco", _ "Service1_vb.disco") ' Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult) [C#] // Initialize a new instance of the DiscoveryClientResult class. DiscoveryClientResult myDiscoveryClientResult = new DiscoveryClientResult( typeof(System.Web.Services.Discovery.DiscoveryDocumentReference), "http://localhost/Discovery/Service1_cs.asmx?disco", "Service1_cs.disco"); // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult); [C++] // Initialize a new instance of the DiscoveryClientResult class. DiscoveryClientResult* myDiscoveryClientResult = new DiscoveryClientResult( __typeof(System::Web::Services::Discovery::DiscoveryDocumentReference), S"http://localhost/Discovery/Service1_cs.asmx?disco", S"Service1_cs.disco"); // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection->Add(myDiscoveryClientResult);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
See Also
DiscoveryClientResult Class | DiscoveryClientResult Members | System.Web.Services.Discovery Namespace
Show: