Udostępnij za pośrednictwem


DTE2.Properties Property

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

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property Properties ( _
    Category As String, _
    Page As String _
) As Properties
Properties this[
    string Category,
    string Page
] { get; }
property Properties^ Properties[String^ Category, String^ Page] {
    Properties^ get (String^ Category, String^ Page);
}
abstract Properties : Properties
JScript does not support indexed properties.

Parameters

  • Category
    Type: System.String
    Required. The name of the property category, such as General or Text Editor.
  • Page
    Type: System.String
    Optional. The name of the property page within the given Category, such as Keyboard.

Property Value

Type: EnvDTE.Properties
A Properties collection containing all available categories and subcategories in the IDE.

Implements

_DTE.Properties[String, String]

Remarks

The environment-level properties are organized in 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.

Examples

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

.NET Framework Security

See Also

Reference

DTE2 Interface

EnvDTE80 Namespace