共用方式為


HOW TO:設定通道

本主題專門說明一項為了在現有應用程式中提供回溯相容性而保留的舊有技術,不建議用於新的開發工作。分散式應用程式應使用 Windows Communication Foundation (WCF) 進行開發。

下列範例將示範如何以不同於 "http" 的名稱建置 HttpChannel,並供伺服器應用程式使用。

範例

<configuration>
 <system.runtime.remoting>
    <application>
      <service>
        <wellknown 
          type="Type,Assembly" 
          mode="Singleton" 
          objectUri="endpoint"
        />
      </service>
      <channels>
        <channel ref="OtherChannel"/>
      </channel>
    </application>
    <channels>
      <channel 
        id="OtherChannel"
        type="CompleteTypeInformation including versiong and strong-name information"
      />
    </channels>
 </system.runtime.remoting>
</configuration>

另請參閱

參考

System.Runtime.Remoting.RemotingConfiguration Class

概念

遠端應用程式的組態
通道
通道註冊
伺服器端註冊
用戶端註冊
通道註冊

其他資源

使用組態檔註冊遠端物件
.NET Framework 遠端處理概觀

建置日期:2010-02-13