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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om