Export (0) Print
Expand All

KeyContainerPermissionAccessEntry.ProviderType Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the provider type.

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)

public int ProviderType { get; set; }
/** @property */
public int get_ProviderType ()

/** @property */
public void set_ProviderType (int value)

public function get ProviderType () : int

public function set ProviderType (value : int)

Property Value

One of the PROV_ values defined in the Wincrypt.h header file.

Exception typeCondition

ArgumentException

The resulting entry would have unrestricted access.

The default value is –1, representing all possible values.

The Wincrypt.h header file defines the following values:

  • #define PROV_RSA_FULL 1

  • #define PROV_RSA_SIG 2

  • #define PROV_DSS 3

  • #define PROV_FORTEZZA 4

  • #define PROV_MS_EXCHANGE 5

  • #define PROV_SSL 6

  • #define PROV_RSA_SCHANNEL 12

  • #define PROV_DSS_DH 13

  • #define PROV_EC_ECDSA_SIG 14

  • #define PROV_EC_ECNRA_SIG 15

  • #define PROV_EC_ECDSA_FULL 16

  • #define PROV_EC_ECNRA_FULL 17

  • #define PROV_DH_SCHANNEL 18

  • #define PROV_SPYRUS_LYNKS 20

  • #define PROV_RNG 21

  • #define PROV_INTEL_SEC 22

  • #define PROV_REPLACE_OWF 23

  • #define PROV_RSA_AES 24

The following code example shows the use of the ProviderType property. This code example is part of a larger example provided for the KeyContainerPermission class.

Console.WriteLine("ProviderType is " + (1 == 
    keyContainerPermAccEntry3.ProviderType ? "PROV_RSA_FULL" :
    keyContainerPermAccEntry3.ProviderType.ToString()));

Console.WriteLine(("ProviderType is " + ((1 == keyContainerPermAccEntry3.get_ProviderType()) ?
    "PROV_RSA_FULL" : System.Convert.ToString(keyContainerPermAccEntry3.get_ProviderType()))));

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

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft