ExportBrokeredServiceAttribute.Audience Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating which clients should be allowed to directly acquire this service. Audiences may be bitwise-OR'd together to expand the set of clients that are allowed to acquire this service.
public Microsoft.VisualStudio.Shell.ServiceBroker.ServiceAudience Audience { get; set; }
member this.Audience : Microsoft.VisualStudio.Shell.ServiceBroker.ServiceAudience with get, set
Public Property Audience As ServiceAudience
Property Value
The default value is Process.
Exceptions
Thrown when an attempt is made to set this value to None.
Remarks
This is an architectural control and not a security boundary, since untrusted parties may acquire a service that you *do* allow to acquire this service, thus giving indirect access to this service to the untrusted client. Use IAuthorizationService (usually via the caching AuthorizationServiceClient wrapper) to perform security checks within your publicly exposed methods to ensure the ultimate client is authorized to perform any operation.