ServiceHostBase.AddBaseAddress(Uri) メソッド
定義
サービス ホストにベース アドレスを追加します。Adds a base address to the service host.
protected:
void AddBaseAddress(Uri ^ baseAddress);
protected void AddBaseAddress (Uri baseAddress);
member this.AddBaseAddress : Uri -> unit
Protected Sub AddBaseAddress (baseAddress As Uri)
パラメーター
- baseAddress
- Uri
現在のホストでホストされるサービスのベースアドレスを含む Uri。A Uri that contains the base address for services hosted on the current host.
例外
baseAddress
を呼び出すことができません。The baseAddress
cannot be called.
注釈
このプロパティを使用すると、 ServiceHostBase ホストの構築後に、ユーザーがを拡張してベースアドレスを指定できます。This property allows users extending ServiceHostBase to provide the base address after the host is constructed. AddBaseAddress(Uri) を使用して既存のホストにベース アドレスを追加できますが、記述が既に初期化されている場合は例外がスローされます。AddBaseAddress(Uri) can be used to add base addresses to an existing host, but throws an exception if the description is already initialized.