Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StrongNameIdentityPermission Constructor (StrongNamePublicKeyBlob, String, Version)

Initializes a new instance of the StrongNameIdentityPermission class for the specified strong name identity.

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

public StrongNameIdentityPermission(
	StrongNamePublicKeyBlob blob,
	string name,
	Version version


Type: System.Security.Permissions.StrongNamePublicKeyBlob

The public key defining the strong name identity namespace.

Type: System.String

The simple name part of the strong name identity. This corresponds to the name of the assembly.

Type: System.Version

The version number of the identity.


The blob parameter is null.


The name parameter is an empty string ("").

The name and version parameters can be null only when the public key is used to identify the assembly. An empty string ("") should not be used in place of null. If name is an empty string, an ArgumentException is thrown.

For more information on names and version numbers of assemblies, see Strong-Named Assemblies.

The following code example shows the use of the StrongNameIdentityPermission constructor.

snIdPerm1 = new StrongNameIdentityPermission(blob, "MyCompany.MyDepartment.*", new Version(""));

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft