共用方式為


ApplicationAccessControlAttribute.Authentication 屬性

定義

取得或設定遠端程序呼叫 (Remote Procedure Call,RPC) 驗證 (Authentication) 層級。

public:
 property System::EnterpriseServices::AuthenticationOption Authentication { System::EnterpriseServices::AuthenticationOption get(); void set(System::EnterpriseServices::AuthenticationOption value); };
public System.EnterpriseServices.AuthenticationOption Authentication { get; set; }
member this.Authentication : System.EnterpriseServices.AuthenticationOption with get, set
Public Property Authentication As AuthenticationOption

屬性值

其中一個 AuthenticationOption 值。

範例

下列範例說明此屬性的使用。

// Set component access controls.
[assembly:ApplicationAccessControl(Authentication=AuthenticationOption::Privacy,
ImpersonationLevel=ImpersonationLevelOption::Identify,
AccessChecksLevel=AccessChecksLevelOption::ApplicationComponent)];
// Set component access controls.
[assembly: ApplicationAccessControl(Authentication=AuthenticationOption.Privacy,
                                    ImpersonationLevel=ImpersonationLevelOption.Identify,
                                    AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)]
' Set component access controls.
<Assembly: ApplicationAccessControl(Authentication:=AuthenticationOption.Privacy, ImpersonationLevel:=ImpersonationLevelOption.Identify, AccessChecksLevel:=AccessChecksLevelOption.ApplicationComponent)>

適用於