Export (0) Print
Expand All

DynamicTypeService Class

Provides instances of ITypeResolutionService for a project.

This API is not CLS-compliant. 

System.Object
  Microsoft.VisualStudio.Shell.Design.DynamicTypeService

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

[CLSCompliantAttribute(false)]
[GuidAttribute("FC43BF19-86FE-4255-901E-15C8D236F3A4")]
public abstract class DynamicTypeService

The DynamicTypeService type exposes the following members.

  NameDescription
Protected methodDynamicTypeServiceInitializes a new instance of DynamicTypeService.
Top

  NameDescription
Public methodCreateDynamicAssemblyThis method creates a new assembly whose contents are the given assembly file.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetContextTypeResolver(IVsHierarchy)Gets a type resolver for the specified hierarchy node.
Public methodGetContextTypeResolver(IVsHierarchy, UInt32)Gets a type resolver for the specified hierarchy node and item ID.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetTypeDiscoveryService(IVsHierarchy)Gets a type discovery service for the specified hierarchy node.
Public methodGetTypeDiscoveryService(IVsHierarchy, UInt32)Gets a type discovery service for the specified hierarchy node and item ID.
Public methodGetTypeResolutionService(IVsHierarchy)Gets a type resolution service for a given hierarchy node.
Public methodGetTypeResolutionService(IVsHierarchy, UInt32)Gets a type resolution service for a given hierarchy node and item ID.
Public methodIsDynamicAssemblyDetermines whether or not the specified assembly has been dynamically created.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnAssemblyDeletedRaised when an assembly has been deleted.
Public methodOnAssemblyObsoleteRaised when an assembly has been made obsolete.
Public methodOnAssemblyRefreshedRaised when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed.
Public methodOnTypeObsoleteRaised when a type has been made obsolete, that is, when it no longer resolves.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventAssemblyDeletedNotifies clients when an assembly has been deleted.
Public eventAssemblyObsoleteNotifies clients when an assembly has been made obsolete, that is, when it no longer resolves.
Public eventAssemblyRefreshedNotifies clients when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed.
Public eventTypeObsoleteNotifies clients when a type has been made obsolete, that is, when it no longer resolves.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft