DynamicTypeService Class
Provides instances of ITypeResolutionService for a project.
This API is not CLS-compliant.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.Design.DynamicTypeService
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
<GuidAttribute("FC43BF19-86FE-4255-901E-15C8D236F3A4")> _
Public MustInherit Class DynamicTypeService
[CLSCompliantAttribute(false)]
[GuidAttribute("FC43BF19-86FE-4255-901E-15C8D236F3A4")]
public abstract class DynamicTypeService
[CLSCompliantAttribute(false)]
[GuidAttribute(L"FC43BF19-86FE-4255-901E-15C8D236F3A4")]
public ref class DynamicTypeService abstract
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("FC43BF19-86FE-4255-901E-15C8D236F3A4")>]
type DynamicTypeService = class end
public abstract class DynamicTypeService
The DynamicTypeService type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DynamicTypeService | Initializes a new instance of DynamicTypeService. |
Top
Methods
Name | Description | |
---|---|---|
CreateDynamicAssembly | This method creates a new assembly whose contents are the given assembly file. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetContextTypeResolver(IVsHierarchy) | Gets a type resolver for the specified hierarchy node. | |
GetContextTypeResolver(IVsHierarchy, UInt32) | Gets a type resolver for the specified hierarchy node and item ID. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetTypeDiscoveryService(IVsHierarchy) | Gets a type discovery service for the specified hierarchy node. | |
GetTypeDiscoveryService(IVsHierarchy, UInt32) | Gets a type discovery service for the specified hierarchy node and item ID. | |
GetTypeResolutionService(IVsHierarchy) | Gets a type resolution service for a given hierarchy node. | |
GetTypeResolutionService(IVsHierarchy, UInt32) | Gets a type resolution service for a given hierarchy node and item ID. | |
IsDynamicAssembly | Determines whether or not the specified assembly has been dynamically created. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnAssemblyDeleted | Raised when an assembly has been deleted. | |
OnAssemblyObsolete | Raised when an assembly has been made obsolete. | |
OnAssemblyRefreshed | Raised when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed. | |
OnTypeObsolete | Raised when a type has been made obsolete, that is, when it no longer resolves. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
AssemblyDeleted | Notifies clients when an assembly has been deleted. | |
AssemblyObsolete | Notifies clients when an assembly has been made obsolete, that is, when it no longer resolves. | |
AssemblyRefreshed | Notifies clients when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed. | |
TypeObsolete | Notifies clients when a type has been made obsolete, that is, when it no longer resolves. |
Top
Remarks
This implementation of ITypeResolutionServiceProvider tracks project lifetimes and automatically shuts down a type resolution service when the project closes. Most designer objects rely on ITypeResolutionService. It is the responsibility of the individual designer loaders to add this service to the service container.
Type resolution in Visual Studio is based on resolving a type name to a reference. References can take several forms: references to files on disk (either directly or through the GAC), references to projects, or references to output generated by the compiler.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.