System.Net.WebPermissionAttribute.Connect Property

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

Syntax

public string Connect { get; set; }

Value

A string that represents the connection controlled by the current instance.

Exceptions

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

Remarks

When applying System.Net.WebPermissionAttribute to your class, this property specifies what URI connection is accepted for use within your class. 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