System.Net.Mail.SmtpPermission.Union Method

Creates a permission that is the union of the current permission and the specified permission.

Syntax

public override System.Security.IPermission Union (System.Security.IPermission target)

Parameters

target
An System.Security.IPermission to combine with the current permission.

Returns

A new System.Net.Mail.SmtpPermission permission that represents the union of the current permission and the specified permission.

Remarks

The SmtpPermission.Union(System.Security.IPermission) method returns a permission that represents all the states represented by both the current permission and the specified permission. Any demand that passes either permission passes their union.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0