Export (0) Print
Expand All

DocumentProperties.GetObjects Method

Returns a list of objects managed by this DocumentProperties object.

This method is not CLS-compliant.  

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

public virtual int GetObjects (
	uint flags,
	uint count,
	Object[] ppUnk
)
public int GetObjects (
	UInt32 flags, 
	UInt32 count, 
	Object[] ppUnk
)
public function GetObjects (
	flags : uint, 
	count : uint, 
	ppUnk : Object[]
) : int

Parameters

flags

[in] This is either GETOBJS_ALL to get all objects, or GETOBJS_SELECTED to get only the selected objects.

count

[in] The maximum number of objects to return.

ppUnk

[in, out] An array that is filled in with the objects to return.

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 GetObjects method on the ISelectionContainer interface.

The base method returns the DocumentProperties object if the count parameter is 1. The base method always returns a success code of S_OK.

Community Additions

ADD
Show:
© 2014 Microsoft