語言

HostProtectionAttribute 建構函式

定義

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

多載

名稱 Description
HostProtectionAttribute()

初始化一個以預設值的新類別實例 HostProtectionAttribute 。

HostProtectionAttribute(SecurityAction)

初始化一個以指定HostProtectionAttribute值的新SecurityAction類別實例。

HostProtectionAttribute()

來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs

初始化一個以預設值的新類別實例 HostProtectionAttribute 。

public:
 HostProtectionAttribute();
public HostProtectionAttribute();
Public Sub New ()

備註

此建構子會產生 HostProtectionAttribute 一個,所有布林性質皆設為 false。

適用於

HostProtectionAttribute(SecurityAction)

來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs
來源:
HostProtectionAttribute.cs

初始化一個以指定HostProtectionAttribute值的新SecurityAction類別實例。

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

參數

action
SecurityAction

這是其中一項 SecurityAction 價值。

例外狀況

action 不是 LinkDemand。

備註

此構造器不應使用。 它主要用於基礎設施建設。

適用於