Freigeben über


DiscoveryClientResult.ReferenceTypeName-Eigenschaft

Der Name der Klasse, die den Typ von Verweis im Discovery-Dokument darstellt.

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

Syntax

'Declaration
Public Property ReferenceTypeName As String
'Usage
Dim instance As DiscoveryClientResult
Dim value As String

value = instance.ReferenceTypeName

instance.ReferenceTypeName = value
public string ReferenceTypeName { get; set; }
public:
property String^ ReferenceTypeName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ReferenceTypeName ()

/** @property */
public void set_ReferenceTypeName (String value)
public function get ReferenceTypeName () : String

public function set ReferenceTypeName (value : String)

Eigenschaftenwert

Der Name der Klasse, die den Typ eines Verweises darstellt. Der Standardwert ist NULL (Nothing in Visual Basic).

Hinweise

Ein Verweis in einem Discovery-Dokument kann Verweise auf Dienstbeschreibungen, XSD-Schemas oder sonstige Discovery-Dokumente enthalten. Deshalb kann ReferenceTypeName die folgenden Werte aufweisen: ServiceDescription, XmlSchema und DiscoveryDocument.

Beispiel

' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New 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 = _
    "https://localhost/Discovery/Service1_vb.asmx?disco"

' Set the name of the file in which the reference is saved.
myDiscoveryClientResult.Filename = "Service1_vb.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.ReferenceTypeName = 
    "System.Web.Services.Discovery.DiscoveryDocumentReference";

// Set the URL for the reference.
myDiscoveryClientResult.Url = 
    "https://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 = 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 = "https://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(
    "https://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);

Plattformen

Windows 98, Windows 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

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DiscoveryClientResult-Klasse
DiscoveryClientResult-Member
System.Web.Services.Discovery-Namespace