This documentation is archived and is not being maintained.
ContractReference Constructor
.NET Framework 1.1
Initializes a new instance of the ContractReference class.
Overload List
Initializes a new instance of the ContractReference class using default values.
[Visual Basic] Public Sub New()
[C#] public ContractReference();
[C++] public: ContractReference();
[JScript] public function ContractReference();
Initializes a new instance of the ContractReference class using the supplied reference to a Service Description.
[Visual Basic] Public Sub New(String)
[C#] public ContractReference(string);
[C++] public: ContractReference(String*);
[JScript] public function ContractReference(String);
Initializes a new instance of the ContractReference class using the supplied references to a service description and a XML Web service implementing the service description.
[Visual Basic] Public Sub New(String, String)
[C#] public ContractReference(string, string);
[C++] public: ContractReference(String*, String*);
[JScript] public function ContractReference(String, String);
Example
[Visual Basic, C#, C++] Note This example shows how to use one of the overloaded versions of the ContractReference constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] ' Create a ContractReference using a service description ' and an XML Web service. Dim myContractReference As New ContractReference _ ("http://localhost/Service1.asmx?wsdl", _ "http://localhost/Service1.asmx") [C#] // Create a ContractReference using a service description and // an XML Web service. ContractReference myContractReference = new ContractReference ("http://localhost/Service1.asmx?wsdl", "http://localhost/Service1.asmx"); [C++] // Create a ContractReference using a service description and // an XML Web service. ContractReference* myContractReference = new ContractReference (S"http://localhost/Service1::asmx?wsdl", S"http://localhost/Service1::asmx");
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
See Also
ContractReference Class | ContractReference Members | System.Web.Services.Discovery Namespace
Show: