KeySizes(Int32, Int32, Int32) 构造函数

定义

使用指定的密钥值初始化 KeySizes 类的新实例。

public:
 KeySizes(int minSize, int maxSize, int skipSize);
public KeySizes (int minSize, int maxSize, int skipSize);
new System.Security.Cryptography.KeySizes : int * int * int -> System.Security.Cryptography.KeySizes
Public Sub New (minSize As Integer, maxSize As Integer, skipSize As Integer)

参数

minSize
Int32

有效密钥的最小大小。

maxSize
Int32

有效密钥的最大大小。

skipSize
Int32

有效密钥大小之间的范围。

示例

以下代码演示了构造函数的 KeySizes 用法。 此代码示例是为 KeySizes 类提供的一个更大示例的一部分。

int minSize = 64;
int maxSize = 1024;
int skipSize = 64;
KeySizes^ keySizes = 
    gcnew KeySizes(minSize, maxSize, skipSize);
int minSize = 64;
int maxSize = 1024;
int skipSize = 64;
KeySizes keySizes = new KeySizes(minSize, maxSize, skipSize);
Dim MinSize As Integer = 64
Dim MaxSize As Integer = 1024
Dim SkipSize As Integer = 64
Dim keySizes As New KeySizes(MinSize, MaxSize, SkipSize)

适用于