The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
PrivateComponentAttribute Constructor ()
.NET Framework (current version)
Initializes a new instance of the PrivateComponentAttribute class.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
The following code example creates a new 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 ref class PrivateComponentAttributeExample : public ServicedComponent { public: void DisplayMessage() { // Display some output. Console::WriteLine("Private component called successfully."); } };
.NET Framework
Available since 1.1
Available since 1.1
Show: