EventLogPermissionAttribute.CreatePermission 方法
定义
基于 MachineName 属性和请求的访问级别(通过特性上的 PermissionAccess 属性设置)创建权限。Creates the permission based on the MachineName property and the requested access levels that are set through the PermissionAccess property on the attribute.
public:
override System::Security::IPermission ^ CreatePermission();
public override System.Security.IPermission CreatePermission ();
override this.CreatePermission : unit -> System.Security.IPermission
Public Overrides Function CreatePermission () As IPermission
返回
一个 IPermission,它表示创建的权限。An IPermission that represents the created permission.