共用方式為


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)

適用於