Bewerken

Share via


ConfigurationPermission.Intersect(IPermission) Method

Definition

Returns the logical intersection between the ConfigurationPermission object and a given object that implements the IPermission interface.

public:
 override System::Security::IPermission ^ Intersect(System::Security::IPermission ^ target);
public override System.Security.IPermission Intersect (System.Security.IPermission target);
override this.Intersect : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Intersect (target As IPermission) As IPermission

Parameters

target
IPermission

The object containing the permissions to perform the intersection with.

Returns

The logical intersection between the ConfigurationPermission and a given object that implements IPermission.

Exceptions

target is not typed as ConfigurationPermission.

Remarks

Although the method signature accepts any object that implements the IPermission interface, an ArgumentException exception will be thrown if calling the GetType method on the object referenced by the target parameter does not return System.Configuration.ConfigurationPermission.

Applies to