GlobalObjectProvider.GetGlobalTypesCore Method
Gets a collection of global types for the specified project that match the specified type.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
‘선언
Protected Overridable Function GetGlobalTypesCore ( _
project As Project _
) As GlobalTypeCollection
protected virtual GlobalTypeCollection GetGlobalTypesCore(
Project project
)
Parameters
- project
Type: EnvDTE.Project
The Project from which to obtain global types.
Return Value
Type: Microsoft.VisualStudio.Shell.Design.GlobalTypeCollection
A GlobalTypeCollection containing the global types for the specified project.
Remarks
The GetGlobalTypesCore method is the internal worker method that the GetGlobalTypes wrapper method refers calls to. The default implementation returns an empty collection; derived classes must override this implementation.
To indicate the absence of any global objects meeting the specified criteria, GetGlobalTypesCore should return an empty collection; it should never return nulla null reference (Nothing in Visual Basic) or a collection with a nulla null reference (Nothing in Visual Basic) element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.