System.Net.WebPermissionAttribute.Accept Property

Gets or sets the URI string accepted by the current System.Net.WebPermissionAttribute.

Syntax

public string Accept { get; set; }

Value

A string that represents the URI accepted by the current instance.

Exceptions

TypeReason
ArgumentException WebPermissionAttribute.Acceptis being set and is not null.

Remarks

When applying System.Net.WebPermissionAttribute to your class, this property specifies what URI string will be accepted for use within your class. This permission is applied when the security system calls WebPermissionAttribute.CreatePermission. This property is write-once.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0