ProvideSettingAttribute 클래스

정의

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

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

생성자

ProvideSettingAttribute(String, SettingScope, SettingStorage)

패키지에서 제공하는 하나 이상의 설정을 선언합니다.

ProvideSettingAttribute(String, SettingScope, SettingStorage, String, String, String, String, String)

패키지에서 제공하는 하나 이상의 설정을 선언합니다.

속성

DescriptionResourceId

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

IsRemotable

연결된 경우 로컬 instance 대신 원격 instance 이 설정을 적용할지 여부를 제어하는 값을 가져오거나 설정합니다.

IsWritableByGuests

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

JsonSchemaResourceId

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

Name

설정의 이름을 가져옵니다.

NameResourceId

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

PackageGuid

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

Scope

설정의 scope 가져옵니다.

SearchKeywordsResourceId

패키지가 소유한 설정을 등록합니다. 등록된 모든 설정은 SVsSettingsPersistenceManager를 통해 유지해야 합니다. SVsSettingsPersistenceManager를 사용하여 유지되지만 등록되지 않은 설정은 기본적으로 비공개입니다.

Storage

설정의 스토리지를 가져옵니다.

TypeId

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

(다음에서 상속됨 RegistrationAttribute)

메서드

GetPackageRegKeyPath(Guid)

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

(다음에서 상속됨 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

지정된 컨텍스트에 이 특성을 등록하기 위해 호출됩니다. 컨텍스트에는 등록 정보를 배치할 위치가 포함됩니다. 등록되는 형식 및 경로 정보도 포함됩니다.

Unregister(RegistrationAttribute+RegistrationContext)

이 특성 등록 취소

적용 대상