CodeGroup.PolicyStatement Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the policy statement associated with the code group.

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

public PolicyStatement PolicyStatement { get; set; }

Property Value

Type: System.Security.Policy.PolicyStatement

The policy statement for the code group.

The policy statement applies to code in assemblies when evidence matches the membership condition.

This property can also be set by passing a policy statement to the constructor.

The following example sets the PolicyStatement for a code group.

codeGroup.PolicyStatement = new PolicyStatement(new NamedPermissionSet("MyPermissionSet"));

.NET Framework
Available since 1.1
Return to top