PeerCollaborationPermissionAttribute(SecurityAction) 构造函数

定义

使用指定的 PeerCollaborationPermissionAttribute 初始化 SecurityAction 类的新实例。

public:
 PeerCollaborationPermissionAttribute(System::Security::Permissions::SecurityAction action);
public PeerCollaborationPermissionAttribute (System.Security.Permissions.SecurityAction action);
new System.Net.PeerToPeer.Collaboration.PeerCollaborationPermissionAttribute : System.Security.Permissions.SecurityAction -> System.Net.PeerToPeer.Collaboration.PeerCollaborationPermissionAttribute
Public Sub New (action As SecurityAction)

参数

action
SecurityAction

指定一个 SecurityAction 值。

注解

PeerCollaborationPermissionAttribute 与 一起使用 PeerCollaborationPermission 以允许或拒绝对等方访问协作会话。

适用于

另请参阅