Share via


How to: Change Membership Conditions for a Code Group

You can use the .NET Framework Configuration tool (Mscorcfg.msc) to change membership conditions in relation to code groups.

To change membership conditions for a code group using Mscorcfg.msc

  1. Run the .NET Framework Configuration tool (Mscorcfg.msc).

    1. In Control Panel, open Administrative Tools.

    2. Double-click Microsoft .NET Framework <version> Configuration.

    Alternatively, you can run the tool from a command prompt:

    • In the .NET Framework versions 1.0 and 1.1, type the following at the command prompt: %Systemroot%\Microsoft.NET\Framework\versionNumber\Mscorcfg.msc.

    • In the .NET Framework 2.0, start the SDK Command Prompt and type mscorcfg.msc.

  2. Expand the Runtime Security Policy node.

  3. Expand the node for the policy level that contains the code group that you want to modify.

  4. Expand the Code Groups node, and then expand the tree under the All_code node.

  5. Right-click the appropriate code group and select Properties.

  6. Click the Membership Condition tab.

  7. Select the membership condition you want to associate with the code group from the drop-down list box. Then follow the instructions for entering the needed information for the membership condition and click OK.

    If you want to import a membership condition from an XML file, select (custom) from the membership condition drop-down list. Then click Import and browse to the XML file.

See Also

Reference

.NET Framework Configuration Tool (Mscorcfg.msc)

.NET Framework Configuration Tool (Mscorcfg.msc)

Other Resources

Security Policy Management

Configuring Security Policy

Configuring Security Policy Using the .NET Framework Configuration Tool (Mscorcfg.msc)

Configuring Code Groups Using the .NET Framework Configuration Tool (Mscorcfg.msc)