Edit

Share via


WebPermissionAttribute.Accept Property

Definition

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

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

Property Value

A string containing the URI accepted by the current WebPermissionAttribute.

Exceptions

Accept is not null when you attempt to set the value. If you wish to specify more than one Accept URI, use an additional attribute declaration statement.

Remarks

When applying 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 CreatePermission. This property is write-once.

Applies to

See also