ConfigurationPermission::Intersect Method (IPermission^)

 

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

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public:
virtual IPermission^ Intersect(
	IPermission^ target
) override

Parameters

target
Type: System.Security::IPermission^

The object containing the permissions to perform the intersection with.

Return Value

Type: System.Security::IPermission^

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

Exception Condition
ArgumentException

target is not typed as ConfigurationPermission.

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.

.NET Framework
Available since 2.0
Return to top
Show: