PartialTrustVisibleAssembliesSection クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
部分信頼アセンブリのセットを構成します。 このクラスは継承できません。
public ref class PartialTrustVisibleAssembliesSection sealed : System::Configuration::ConfigurationSection
public sealed class PartialTrustVisibleAssembliesSection : System.Configuration.ConfigurationSection
type PartialTrustVisibleAssembliesSection = class
inherit ConfigurationSection
Public NotInheritable Class PartialTrustVisibleAssembliesSection
Inherits ConfigurationSection
- 継承
次の例は、構成ファイルの セクションを使用して部分信頼アセンブリを partialTrustVisibleAssemblies
構成する方法を示しています。
<partialTrustVisibleAssemblies>
<add assemblyName="MyAssembly"
publicKey="hex_key_representation"/>
</partialTrustVisibleAssemblies>
既定では、ASP.NET は、部分信頼のアプリケーションで使用するために部分信頼呼び出し元属性 (APTCA) でマークされている既知のアセンブリのセット ASP.NET を内部的に定義します。 PartialTrustVisibleAssembliesSectionを使用すると、APTCA でマークされたアセンブリを一覧に追加できます。
アセンブリを構成するには、その公開キーの 16 進数の文字列表現が必要です。 このキーは、厳密な名前ツール (Sn.exe) を使用して取得します。 このツールは、構成に使用する公開キーの 16 進文字列表現を生成し、公開キー トークンも生成します。
厳密な名前ツールの詳細については、「 Sn.exe (厳密な名前ツール)」を参照してください。
Partial |
PartialTrustVisibleAssembliesSection クラスの新しいインスタンスを初期化します。 |
製品 | バージョン |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。