LanguageService.Preferences Property
Provides access to the language service preferences.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Property Preferences As LanguagePreferences
Get
Set
'使用
Dim instance As LanguageService
Dim value As LanguagePreferences
value = instance.Preferences
instance.Preferences = value
public LanguagePreferences Preferences { get; set; }
public:
property LanguagePreferences^ Preferences {
LanguagePreferences^ get ();
void set (LanguagePreferences^ value);
}
member Preferences : LanguagePreferences with get, set
function get Preferences () : LanguagePreferences
function set Preferences (value : LanguagePreferences)
Property Value
Type: Microsoft.VisualStudio.Package.LanguagePreferences
Always returns a LanguagePreferences object.
Remarks
The first time language preferences are needed, LanguageService.GetLanguagePreferences is called to obtain the LanguagePreferences object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.