DiscoveryClientResult.ReferenceTypeName Property
.NET Framework 2.0
Name of the class representing the type of reference in the discovery document.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
/** @property */ public String get_ReferenceTypeName () /** @property */ public void set_ReferenceTypeName (String value)
public function get ReferenceTypeName () : String public function set ReferenceTypeName (value : String)
Not applicable.
Property Value
Name of the class representing the type of a reference. Default value is a null reference (Nothing in Visual Basic).A reference within a discovery document can contain references to service descriptions, XSD schemas, or other discovery documents. Therefore, ReferenceTypeName can have the following values: ServiceDescription, XmlSchema, and DiscoveryDocument.
// 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: