RegiisUtility.ProtectedConfigAction 方法

定义

允许根据提供的参数对配置节和程序集密钥容器执行特定操作。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual void ProtectedConfigAction(long options, System::String ^ firstArgument, System::String ^ secondArgument, System::String ^ providerName, System::String ^ appPath, System::String ^ site, System::String ^ cspOrLocation, int keySize, [Runtime::InteropServices::Out] IntPtr % exception);
public void ProtectedConfigAction (long options, string firstArgument, string secondArgument, string providerName, string appPath, string site, string cspOrLocation, int keySize, out IntPtr exception);
abstract member ProtectedConfigAction : int64 * string * string * string * string * string * string * int * nativeint -> unit
override this.ProtectedConfigAction : int64 * string * string * string * string * string * string * int * nativeint -> unit
Public Sub ProtectedConfigAction (options As Long, firstArgument As String, secondArgument As String, providerName As String, appPath As String, site As String, cspOrLocation As String, keySize As Integer, ByRef exception As IntPtr)

参数

options
Int64

要执行的操作的类型。

firstArgument
String

配置节或程序集密钥容器的名称。

secondArgument
String

配置文件名或帐户名。

providerName
String

提供程序名称。

appPath
String

应用程序路径。

site
String

站点引用。

cspOrLocation
String

配置位置。

keySize
Int32

密钥大小。

exception
IntPtr

nativeint

要显示的异常。

实现

注解

方法 ProtectedConfigAction 在内部用于保护和取消保护配置中的部分。 方法 ProtectedConfigAction 还支持程序集键容器操作。

适用于