다음을 통해 공유


ProvideBrokeredServiceAttribute 클래스

정의

지정된 서비스가 요청될 때 패키지가 로드되도록 하는 Visual Studio 패키지에 대한 등록을 생성합니다.

public ref class ProvideBrokeredServiceAttribute : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideBrokeredServiceAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideBrokeredServiceAttribute = class
    inherit RegistrationAttribute
Public Class ProvideBrokeredServiceAttribute
Inherits RegistrationAttribute
상속
ProvideBrokeredServiceAttribute
파생
특성

생성자

ProvideBrokeredServiceAttribute(String)

ProvideBrokeredServiceAttribute 클래스의 새 인스턴스를 초기화합니다.

ProvideBrokeredServiceAttribute(String, String)

ProvideBrokeredServiceAttribute 클래스의 새 인스턴스를 초기화합니다.

필드

AllowGuestClientsRegValue

보안 컨텍스트를 저장할 레지스트리 값

AudienceRegValue

서비스의 scope 나타내는 레지스트리 값입니다.

BrokeredServiceRegKey

BrokeredServices의 레지스트리 키

DefaultAudience

의 기본값입니다 Audience.

속성

AllowTransitiveGuestClients

게스트 클라이언트가 이 서비스를 전이적으로 획득할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. 기본적으로(false) 소유자만 조정된 서비스에 액세스할 수 있습니다. 게스트가 제안 서비스를 획득할 수 있도록 옵트인하려면 으로 true설정합니다. 이제 이를 서비스로 true 설정하면 를 사용하여 IAuthorizationService 중요한 작업에 권한을 부여할 책임이 있습니다.

Audience

이 서비스를 직접 획득할 수 있는 클라이언트를 나타내는 값을 가져오거나 설정합니다. 대상 그룹은 이 서비스를 획득할 수 있는 클라이언트 집합을 확장하기 위해 비트 OR일 수 있습니다.

Name

서비스의 이름(과 동일)을 Name가져옵니다.

TypeId

RegistrationAttribute 파생 클래스가 System.ComponentModel.TypeDescriptor.GetAttributes(...)에서 작동하도록 하려면 TypeID 속성을 재정의합니다. 이 속성에서 파생된 특성은 클래스에 적용할 수 있는 인스턴스에 대한 더 나은 제어가 필요한 경우에만 이 속성을 재정의해야 합니다.

(다음에서 상속됨 RegistrationAttribute)
Version

프로퍼링된 서비스의 버전(과 동일 Version)을 가져오거나 설정합니다.

메서드

GetPackageGuid(RegistrationAttribute+RegistrationContext)

이 서비스를 제공하는 패키지에 대한 GUID를 가져옵니다.

GetPackageRegKeyPath(Guid)

VSPackage의 레지스트리 경로(애플리케이션의 레지스트리 루트를 기준으로)를 가져옵니다.

(다음에서 상속됨 RegistrationAttribute)
GetRegistryRoot(String, Version)

조정된 서비스가 등록된 키에 대한 VS-hive 상대 경로를 반환합니다.

Register(RegistrationAttribute+RegistrationContext)

regpkg.exe 같은 외부 등록 도구에서 호출할 때 지정된 컨텍스트에 이 VSPackage를 등록합니다. 자세한 내용은 VSPackage 등록을 참조하세요.

SetRegistryValues(RegistrationAttribute+RegistrationContext, RegistrationAttribute+Key)

지정된 레지스트리 키의 값을 설정합니다.

Unregister(RegistrationAttribute+RegistrationContext)

지정된 컨텍스트에서 이 특성의 등록을 취소하기 위해 호출됩니다.

적용 대상