WsdlImporter.ImportContract(PortType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a ContractDescription object that represents metadata located by the specified port type information.
public:
System::ServiceModel::Description::ContractDescription ^ ImportContract(System::Web::Services::Description::PortType ^ wsdlPortType);
public System.ServiceModel.Description.ContractDescription ImportContract (System.Web.Services.Description.PortType wsdlPortType);
member this.ImportContract : System.Web.Services.Description.PortType -> System.ServiceModel.Description.ContractDescription
Public Function ImportContract (wsdlPortType As PortType) As ContractDescription
Parameters
Returns
A ContractDescription object that represents metadata located by the specified port type information.
Exceptions
The WsdlImporter has encountered an error.
The port type is null
.
Remarks
Use the ImportContract method to use a System.Web.Services.Description.PortType object to locate port type information in the metadata and return that information as a ContractDescription object. Check the Errors property to determine whether there are any import errors before using the returned object.
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za