DTE2.Properties[String, String] Property

Definition

Gets a Properties collection representing all available categories and subcategories contained in the Options dialog box on the Tools menu.

[System.Runtime.InteropServices.DispId(212)]
[get: System.Runtime.InteropServices.DispId(212)]
public EnvDTE.Properties Properties[string Category, string Page] { get; }
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.

Examples

Sub PropertiesExample()  
  MsgBox(DTE2.Properties("Environment", "General").Count)  
End Sub  

Remarks

The environment-level properties are organized in categories. Within each category, there is a Properties[String, String] collection for each package or service that contributes to the environment.

If the specified properties collection is not available, Properties[String, String] returns NULL.

Applies to