This documentation is archived and is not being maintained.

IRegiisUtility::ProtectedConfigAction Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Allows specific manipulation of configuration sections and assembly-key containers based on the supplied parameters.

Namespace:  System.Web.Management
Assembly:  System.Web (in System.Web.dll)

void ProtectedConfigAction(
	long long actionToPerform, 
	[InAttribute] String^ firstArgument, 
	[InAttribute] String^ secondArgument, 
	[InAttribute] String^ providerName, 
	[InAttribute] String^ appPath, 
	[InAttribute] String^ site, 
	[InAttribute] String^ cspOrLocation, 
	int keySize, 
	[OutAttribute] IntPtr% exception
)

Parameters

actionToPerform
Type: System::Int64

The type of action to perform.

firstArgument
Type: System::String

A configuration section or assembly-key container name.

secondArgument
Type: System::String

The configuration file name or account name.

providerName
Type: System::String

The provider name.

appPath
Type: System::String

The application path.

site
Type: System::String

The site reference.

cspOrLocation
Type: System::String

The configuration location.

keySize
Type: System::Int32

The size of the key.

exception
Type: System::IntPtr%

The exception to display.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: