SmtpPermissionAttribute.Access 属性

定义

获取或设置由该特性控制的对 SMTP 服务器的访问级别。Gets or sets the level of access to SMTP servers controlled by the attribute.

public:
 property System::String ^ Access { System::String ^ get(); void set(System::String ^ value); };
public string Access { get; set; }
member this.Access : string with get, set
Public Property Access As String

属性值

String

一个 String 值。A String value. 有效值是“连接”和“无”。Valid values are "Connect" and "None".

注解

如果在设置此属性时指定了无效的值,则 CreatePermission ArgumentException 当系统调用时,该方法将引发。If you specify an invalid value when setting this property, the CreatePermission method will throw an ArgumentException when called by the system.

适用于