ServiceAuthorizationBehavior 類別

定義

提供與服務授權行為相關的屬性。

public ref class ServiceAuthorizationBehavior sealed : System::ServiceModel::Description::IServiceBehavior
public sealed class ServiceAuthorizationBehavior : System.ServiceModel.Description.IServiceBehavior
type ServiceAuthorizationBehavior = class
    interface IServiceBehavior
Public NotInheritable Class ServiceAuthorizationBehavior
Implements IServiceBehavior
繼承
ServiceAuthorizationBehavior
實作

備註

授權會發生在服務層級和作業層級。 這個類別包含的是與服務層級授權相關的屬性。

建構函式

ServiceAuthorizationBehavior()

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

屬性

ExternalAuthorizationPolicies

取得或設定外部授權原則的集合。

ImpersonateCallerForAllOperations

取得或設定值,這個值會指出服務是否針對支援的所有作業執行模擬。

ImpersonateOnSerializingReply

取得或設定值,表示服務是否在序列化回覆時執行模擬。

PrincipalPermissionMode

取得或設定主要使用權限模式。

RoleProvider

取得或設定自訂角色提供者。

ServiceAuthorizationManager

取得或設定服務授權管理員。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ShouldSerializeExternalAuthorizationPolicies()

傳回值,這個值表示 ExternalAuthorizationPolicies 屬性是否已變更為非預設值且應該序列化。

ShouldSerializeServiceAuthorizationManager()

傳回值,這個值表示 ServiceAuthorizationManager 屬性是否已變更為非預設值且應該序列化。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IServiceBehavior.AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

提供將自訂資料傳遞到繫結項目以支援合約實作的功能。

IServiceBehavior.ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

定義明確的介面實作,它會加入分派行為以設定繫結。

IServiceBehavior.Validate(ServiceDescription, ServiceHostBase)

提供檢查服務主機和服務描述的功能,以確認服務能夠順利執行。

適用於