PrivateComponentAttribute コンストラクタ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)


新しい PrivateComponentAttribute を作成するコード例を次に示します。
' Note: Access checks must be performed at the component level to allow access ' to private components. <assembly: ApplicationAccessControl(False, AccessChecksLevel := AccessChecksLevelOption.ApplicationComponent)> <PrivateComponent()> _ Public Class PrivateComponentAttribute_Example Inherits ServicedComponent Public Sub Example() ' Display some output. MsgBox("Private component called successfully.") End Sub 'Example End Class 'PrivateComponentAttribute_Example
// Note: Access checks must be performed at the component level to allow access // to private components. [assembly: ApplicationAccessControl(false, AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)] [PrivateComponent] public class PrivateComponentAttribute_Example : ServicedComponent { public void Example() { // Display some output. Console.WriteLine("Private component called successfully."); } }
// Note: Access checks must be performed at the component level to allow access // to private components. [assembly: ApplicationAccessControl(false, AccessChecksLevel=AccessChecksLevelOption::ApplicationComponent)]; [PrivateComponent] public ref class PrivateComponentAttributeExample : public ServicedComponent { public: void DisplayMessage() { // Display some output. Console::WriteLine("Private component called successfully."); } };
// Note: Access checks must be performed at the component level to allow access // to private components. /** @assembly ApplicationAccessControl(false, AccessChecksLevel = AccessChecksLevelOption.ApplicationComponent) */ /** @attribute PrivateComponent() */ public class PrivateComponentAttribute_Example extends ServicedComponent { public void Example() { // Display some output. Console.WriteLine("Private component called successfully."); } //Example } //PrivateComponentAttribute_Example


Windows 98, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPrivateComponentAttribute コンストラクタを検索する場合は、下記のリンクをクリックしてください。

- PrivateComponentAttribute コンストラクタのページへのリンク