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.
Durchsucht die ServiceDescriptionCollection und gibt den PortType mit dem angegebenen Namen zurück, der ein Member einer der in der Auflistung enthaltenen ServiceDescription-Instanzen ist.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Function GetPortType ( _
name As XmlQualifiedName _
) As PortType
'Usage
Dim instance As ServiceDescriptionCollection
Dim name As XmlQualifiedName
Dim returnValue As PortType
returnValue = instance.GetPortType(name)
public PortType GetPortType (
XmlQualifiedName name
)
public:
PortType^ GetPortType (
XmlQualifiedName^ name
)
public PortType GetPortType (
XmlQualifiedName name
)
public function GetPortType (
name : XmlQualifiedName
) : PortType
Parameter
- name
Der als Verweis übergebene XmlQualifiedName, dessen Name-Eigenschaft mit der des zurückgegebenen PortType identisch ist.
Rückgabewert
Ein PortType.
Ausnahmen
| Ausnahmetyp | Bedingung |
|---|---|
Der angegebene PortType ist kein Member einer der ServiceDescription-Instanzen in der Auflistung. |
Beispiel
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
New XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/")
' Get the PortType from the collection.
Dim myPort As PortType = myCollection.GetPortType(myXmlQualifiedName)
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
new XmlQualifiedName("MathServiceSoap","http://tempuri2.org/");
// Get the PortType from the collection.
PortType myPort = myCollection.GetPortType(myXmlQualifiedName);
// Construct an XML qualified name.
XmlQualifiedName^ myXmlQualifiedName =
gcnew XmlQualifiedName( "MathServiceSoap","http://tempuri2.org/" );
// Get the PortType from the collection.
myCollection->GetPortType( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
new XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/");
// Get the PortType from the collection.
PortType myPort = myCollection.GetPortType(myXmlQualifiedName);
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
ServiceDescriptionCollection-Klasse
ServiceDescriptionCollection-Member
System.Web.Services.Description-Namespace