_DTE.Properties[String, String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Properties collection representing all available categories and subcategories contained in the Options dialog box on the Tools menu.
public:
property EnvDTE::Properties ^ Properties[System::String ^, System::String ^] { EnvDTE::Properties ^ get(System::String ^ Category, System::String ^ Page); };
[System.Runtime.InteropServices.DispId(212)]
public EnvDTE.Properties Properties[string Category, string Page] { [System.Runtime.InteropServices.DispId(212)] get; }
[<System.Runtime.InteropServices.DispId(212)>]
[<get: System.Runtime.InteropServices.DispId(212)>]
member this.Properties(string * string) : EnvDTE.Properties
Public ReadOnly Property Properties(Category As String, Page As String) As Properties
Parameters
- Category
- String
Required. The name of the property category, such as General or Text Editor.
- Page
- String
Optional. The name of the property page within the given Category
, such as Keyboard.
Property Value
A Properties collection containing all available categories and subcategories in the IDE.
- Attributes
Examples
Sub PropertiesExample()
MsgBox(DTE.Properties("Environment", "General").Count)
End Sub
Remarks
The environment-level properties are organized into categories. Within each category, there is a Properties
collection for each package or service that contributes to the environment.
If the specified properties collection is not available, Properties
returns NULL
.