AuthorizationContext.ServiceContainer Property

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets an IServiceContainer that can be used for adding, removing, and getting services used for authorization.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public ReadOnly Property ServiceContainer As IServiceContainer
    Get
'Usage
Dim instance As AuthorizationContext
Dim value As IServiceContainer

value = instance.ServiceContainer
public IServiceContainer ServiceContainer { get; }
public:
property IServiceContainer^ ServiceContainer {
    IServiceContainer^ get ();
}
member ServiceContainer : IServiceContainer
function get ServiceContainer () : IServiceContainer

Property Value

Type: System.ComponentModel.Design.IServiceContainer
An IServiceContainer that can be used for adding, removing, and getting services used for authorization.

Remarks

The GetService method queries this container and the IServiceProvider object specified in the constructor.

This container is created on demand and is effectively scoped to this AuthorizationContext instance. It does not promote add or remove requests.

See Also

Reference

AuthorizationContext Class

System.ComponentModel.DataAnnotations Namespace