PrivateComponentAttribute Constructor ()


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

Initializes a new instance of the PrivateComponentAttribute class.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public PrivateComponentAttribute()

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,

public class PrivateComponentAttribute_Example : ServicedComponent
    public void Example()
        // Display some output.
        Console.WriteLine("Private component called successfully.");

.NET Framework
Available since 1.1
Return to top