Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
ID
Top
Expand Minimize

Properties Property (DTE Object)

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public ReadOnly Property Properties( _
   ByVal Category As String, _
   ByVal Page As String _
) As Properties
[Visual Basic 6]
Property Get Properties( _
   ByVal Category As String, _
   ByVal Page As String _
) As Properties
[C++]
HRESULT __stdcall get_Properties(
   BSTR Category,
   BSTR Page,
   /* [out, retval] */ Properties** retVal
);
[C#]
public Properties Properties(
   string Category,
   string Page
) {get;}
[JScript .NET]
public function get Properties(
   Category : String,
   Page : String
) : Properties

Parameters

Category
Required. The name of the property category, such as General or Text Editor. The complete list of categories can be found in DTE Properties Collections.
Page
Optional. The name of the property page within the given Category, such as Keyboard.

Return Value

Returns a Properties collection containing all available categories and subcategories in the IDE.

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. A complete list of the categories and collections is available in DTE Properties Collections.

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

Example

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

See Also

Applies To: DTE Object

Show:
© 2015 Microsoft