共用方式為


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 運作,以允許或拒絕對等存取共同作業會話。

適用於

另請參閱