blob: 4b3dbf59c98a3078c0e9f8022065989e49f0fd0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Utilities
{
/// <summary>
/// A MEF attribute determining if an option is visible to the user.
/// </summary>
public sealed class OptionUserVisibleAttribute : SingletonBaseMetadataAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="OptionUserVisibleAttribute"/>.
/// </summary>
/// <param name="userVisible"><c>true</c> if the option is visible to the user; otherwise <c>false</c>.</param>
public OptionUserVisibleAttribute(bool userVisible)
{
this.OptionUserVisible = userVisible;
}
/// <summary>
/// Determines whether the option is visible to the user.
/// </summary>
public bool OptionUserVisible { get; }
}
}
|