Export (0) Print
Expand All

KeyContainerPermissionAccessEntry.ProviderName Property

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

Gets or sets the provider name.

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

public string ProviderName { get; set; }
/** @property */
public String get_ProviderName ()

/** @property */
public void set_ProviderName (String value)

public function get ProviderName () : String

public function set ProviderName (value : String)

Property Value

The name of the provider.

Exception typeCondition

ArgumentException

The resulting entry would have unrestricted access.

An example of a provider name is "Microsoft Enhanced Cryptographic Provider". If a null reference (Nothing in Visual Basic) is specified, the enhanced cryptographic provider name is used.

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

Console.WriteLine("ProviderName is " + 
    keyContainerPermAccEntry3.ProviderName);

Console.WriteLine(("ProviderName is " + keyContainerPermAccEntry3.get_ProviderName()));

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