ServiceConfiguration 類別

定義

表示服務的可設定屬性。Represents a configurable property for the service.

public ref class ServiceConfiguration
public class ServiceConfiguration
type ServiceConfiguration = class
Public Class ServiceConfiguration
繼承
ServiceConfiguration

屬性

Authentication

取得服務驗證行為。Gets the service authentication behavior.

Authorization

取得服務的授權行為。Gets the authorization behavior for the service.

BaseAddresses

取得服務所使用的基底位址。Gets the base addresses used by the service.

CloseTimeout

取得或設定允許服務關閉的時間間隔。Gets or sets the interval of time allowed for the service to close.

Credentials

取得服務認證。Gets the service credential.

Description

取得服務描述。Gets the service description.

IdentityConfiguration

取得或設定服務的識別組態。Gets or sets the identity configuration for the service.

OpenTimeout

取得或設定允許服務開啟的時間間隔。Gets or sets the interval of time allowed for the service to open.

UseIdentityConfiguration

取得或設定值,指出服務是否使用識別組態。Gets or sets a value that indicates whether the service uses identity configuration.

方法

AddServiceEndpoint(ServiceEndpoint)

將指定的服務端點加入至組態服務。Adds the specified service endpoint to the configuration service.

AddServiceEndpoint(Type, Binding, String)

使用指定的合約、繫結和端點位址,將服務端點加入至組態服務。Adds a service endpoint to the configuration service with a specified contract, binding, and endpoint address.

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的合約、繫結、端點位址,以及包含其接聽所在位址的 URI,將服務端點加入至組態服務。Adds a service endpoint to the configuration service with a specified contract, binding, endpoint address and URI that contains the address at which it listens.

AddServiceEndpoint(Type, Binding, Uri)

使用指定的合約、繫結以及含有端點位址的 URI,將服務端點加入至組態服務。Adds a service endpoint to the configuration service with a specified contract, binding, and URI that contains the endpoint address.

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用指定的合約、繫結以及含有端點與接聽位址的 URI,將服務端點加入至組態服務。Adds a service endpoint to the configuration service with the specified contract, binding, and URIs that contain the endpoint and listening addresses.

EnableProtocol(Binding)

啟動服務端點的繫結通訊協定。Enables a binding protocol with the service endpoint.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
LoadFromConfiguration()

從目前的服務組態載入組態。Loads a configuration from the current service configuration.

LoadFromConfiguration(Configuration)

從目前的服務組態載入組態。Loads the configuration from the current service configuration.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
SetEndpointAddress(ServiceEndpoint, String)

將指定之端點的端點位址設定為指定的位址。Sets the endpoint address of the specified endpoint to the specified address.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於