ApplicationAccessControlAttribute.Authentication 属性

定义

获取或设置远程过程调用 (RPC) 身份验证级别。

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)>

适用于