DynamicTypeService Class

Provides instances of ITypeResolutionService for a project.

This API is not CLS-compliant. 

Inheritance Hierarchy

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
Protected method DynamicTypeService Initializes a new instance of DynamicTypeService.

Top

Methods

  Name Description
Public method CreateDynamicAssembly This method creates a new assembly whose contents are the given assembly file.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetContextTypeResolver(IVsHierarchy) Gets a type resolver for the specified hierarchy node.
Public method GetContextTypeResolver(IVsHierarchy, UInt32) Gets a type resolver for the specified hierarchy node and item ID.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetTypeDiscoveryService(IVsHierarchy) Gets a type discovery service for the specified hierarchy node.
Public method GetTypeDiscoveryService(IVsHierarchy, UInt32) Gets a type discovery service for the specified hierarchy node and item ID.
Public method GetTypeResolutionService(IVsHierarchy) Gets a type resolution service for a given hierarchy node.
Public method GetTypeResolutionService(IVsHierarchy, UInt32) Gets a type resolution service for a given hierarchy node and item ID.
Public method IsDynamicAssembly Determines whether or not the specified assembly has been dynamically created.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnAssemblyDeleted Raised when an assembly has been deleted.
Public method OnAssemblyObsolete Raised when an assembly has been made obsolete.
Public method OnAssemblyRefreshed Raised when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed.
Public method OnTypeObsolete Raised when a type has been made obsolete, that is, when it no longer resolves.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event AssemblyDeleted Notifies clients when an assembly has been deleted.
Public event AssemblyObsolete Notifies clients when an assembly has been made obsolete, that is, when it no longer resolves.
Public event AssemblyRefreshed Notifies clients when an assembly has been refreshed, for example when it has been rebuilt and the name or configuration has changed.
Public event 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.

See Also

Reference

Microsoft.VisualStudio.Shell.Design Namespace