DiscoveryClientResult.Url Property
.NET Framework 2.0
Gets or sets the URL for the reference.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
// Initialize new instance of the DiscoveryClientResult class. DiscoveryClientResult^ myDiscoveryClientResult = gcnew DiscoveryClientResult; // Set the type of reference in the discovery document as // DiscoveryDocumentReference. myDiscoveryClientResult->ReferenceTypeName = "System.Web.Services.Discovery.DiscoveryDocumentReference"; // Set the URL for the reference. myDiscoveryClientResult->Url = "http://localhost/Discovery/Service1_cs.asmx?disco"; // Set the name of the file in which the reference is saved. myDiscoveryClientResult->Filename = "Service1_cs.disco"; // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
new DiscoveryClientResult();
// Set the type of reference in the discovery document as
// DiscoveryDocumentReference.
myDiscoveryClientResult.set_ReferenceTypeName(
"System.Web.Services.Discovery.DiscoveryDocumentReference");
// Set the URL for the reference.
myDiscoveryClientResult.set_Url(
"http://localhost/Discovery/Service1_jsl.asmx?disco");
// Set the name of the file in which the reference is saved.
myDiscoveryClientResult.set_Filename("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.Community Additions
ADD
Show: