共用方式為


WebClientProtocol 建構函式

定義

初始化 WebClientProtocol 類別的新執行個體。

protected:
 WebClientProtocol();
protected WebClientProtocol ();
Protected Sub New ()

範例

[System::Web::Services::WebServiceBindingAttribute(Name="Service1Soap",
   Namespace="http://tempuri.org/")]
ref class TempConvertService: public System::Web::Services::Protocols::WebClientProtocol
{
public:
   TempConvertService() : WebClientProtocol()
   {
      // Rest of class initialization.
   }
[System.Web.Services.WebServiceBindingAttribute(Name="Service1Soap",
     Namespace="http://tempuri.org/")]
class TempConvertService: System.Web.Services.Protocols.WebClientProtocol 
{
    public TempConvertService(): base() 
    {
        // Rest of class initialization.
    }
Class TempConvertService
    Inherits System.Web.Services.Protocols.WebClientProtocol
  
    Public Sub New()
       MyBase.New()
       ' Rest of class initialization.
    End Sub 
End Class

適用於

另請參閱