Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der DiscoveryClientResult-Klasse und legt die ReferenceTypeName-Eigenschaft auf referenceType, die Url-Eigenschaft auf url und die Filename-Eigenschaft auf filename fest.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Sub New ( _
referenceType As Type, _
url As String, _
filename As String _
)
'Usage
Dim referenceType As Type
Dim url As String
Dim filename As String
Dim instance As New DiscoveryClientResult(referenceType, url, filename)
public DiscoveryClientResult (
Type referenceType,
string url,
string filename
)
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
)
Parameter
- referenceType
Der Name der Klasse, die den Typ von Verweis im Discovery-Dokument darstellt. Legt die ReferenceTypeName-Eigenschaft fest.
- url
Der URL für den Verweis. Legt die Url-Eigenschaft fest.
- filename
Der Name der Datei, in der der Verweis gespeichert wurde. Legt die Filename-Eigenschaft fest.
Beispiel
' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New DiscoveryClientResult( _
GetType(System.Web.Services.Discovery.DiscoveryDocumentReference), _
"https://localhost/Discovery/Service1_vb.asmx?disco", _
"Service1_vb.disco")
' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
new DiscoveryClientResult(
typeof(System.Web.Services.Discovery.DiscoveryDocumentReference),
"https://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 =
gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid,
"https://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(),
"https://localhost/Discovery/Service1_jsl.asmx?disco",
"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