共用方式為


EventLogPermissionAttribute(SecurityAction) 建構函式

定義

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

public:
 EventLogPermissionAttribute(System::Security::Permissions::SecurityAction action);
public EventLogPermissionAttribute (System.Security.Permissions.SecurityAction action);
new System.Diagnostics.EventLogPermissionAttribute : System.Security.Permissions.SecurityAction -> System.Diagnostics.EventLogPermissionAttribute
Public Sub New (action As SecurityAction)

參數

action
SecurityAction

其中一個 SecurityAction 值。

適用於

另請參閱