ProvideBrokeredServiceHubServiceAttribute Class

Definition

Produces registration for a Visual Studio package that leads to the package to be loaded when a specified ServiceHub service is requested.

public ref class ProvideBrokeredServiceHubServiceAttribute : Microsoft::VisualStudio::Shell::ServiceBroker::ProvideBrokeredServiceAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideBrokeredServiceHubServiceAttribute : Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideBrokeredServiceHubServiceAttribute = class
    inherit ProvideBrokeredServiceAttribute
Public Class ProvideBrokeredServiceHubServiceAttribute
Inherits ProvideBrokeredServiceAttribute
Inheritance
ProvideBrokeredServiceHubServiceAttribute
Attributes

Constructors

ProvideBrokeredServiceHubServiceAttribute(String)

Initializes a new instance of the ProvideBrokeredServiceHubServiceAttribute class.

Fields

AllowGuestClientsRegValue

The registry value to store the security context

(Inherited from ProvideBrokeredServiceAttribute)
AudienceRegValue

The registry value to denote the scope of a service

(Inherited from ProvideBrokeredServiceAttribute)
BrokeredServiceRegKey

The registry key for BrokeredServices

(Inherited from ProvideBrokeredServiceAttribute)
DefaultAudience

The default value for Audience.

(Inherited from ProvideBrokeredServiceAttribute)
DefaultServiceLocation

The default value for ServiceLocationRegValue

IsServiceHubRegValue

The registry value to denote the whether this is a ServiceHub service

ServiceLocationRegValue

The registry value to denote the location of the service config

Properties

AllowTransitiveGuestClients

Gets or sets a value indicating whether guest clients are allowed to transitively acquire this service. By default (false), only owners are allowed to access a brokered service. To opt-in to allowing guests to acquire the proffered service, set this to true. By setting this to true the service now has sole responsibility in correctly using IAuthorizationService to authorize sensitive operations.

(Inherited from ProvideBrokeredServiceAttribute)
Audience

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.

(Inherited from ProvideBrokeredServiceAttribute)
Name

Gets the name of the service (same as Name.)

(Inherited from ProvideBrokeredServiceAttribute)
ServiceLocation

Gets or sets the location of the service configuration file. This includes the path to the configuration file, but should not contain the name of the file itself.

TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)
Version

Gets or sets the version of the proffered service (same as Version.)

(Inherited from ProvideBrokeredServiceAttribute)

Methods

GetPackageGuid(RegistrationAttribute+RegistrationContext)
GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this VSPackage with a given context, when called by an external registration tool such as regpkg.exe. For more information, see Registering VSPackages.

(Inherited from ProvideBrokeredServiceAttribute)
SetRegistryValues(RegistrationAttribute+RegistrationContext, RegistrationAttribute+Key)
Unregister(RegistrationAttribute+RegistrationContext)

Called to unregister this attribute with the given context.

(Inherited from ProvideBrokeredServiceAttribute)

Applies to