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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

DocumentProperties.SelectObjects Method

Called to manage the selection of multiple objects in the Properties window.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in microsoft.visualstudio.package.languageservice.dll)

public virtual int SelectObjects (
	uint sel,
	Object[] selobj,
	uint flags
public int SelectObjects (
	UInt32 sel, 
	Object[] selobj, 
	UInt32 flags
public function SelectObjects (
	sel : uint, 
	selobj : Object[], 
	flags : uint
) : int



[in] The number of objects in the selobj array.


[in] An array of objects returned from the GetObjects method.


[in] This is SELOBJS_ACTIVATE_WINDOW to select the objects in the array; otherwise, the objects are de-selected.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

This method is used in managing multiple objects in the Properties window. A language service typically needs only the one DocumentProperties object and the base method handles this automatically.

This method is an implementation of the SelectObjects method on the ISelectionContainer interface.

The base method does nothing and always returns a success code of S_OK.

Community Additions

© 2015 Microsoft