Delen via


DynamicTypeService.ContextTypeResolver Class

An IDisposable object that routes assembly/type resolution issues to the ITypeResolutionService for the given hierarchy. It is instantiated by a call to GetContextTypeResolver.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.Design.DynamicTypeService.ContextTypeResolver

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

Syntax

'Declaration
Public Class ContextTypeResolver _
    Implements IDisposable
public class ContextTypeResolver : IDisposable
public ref class ContextTypeResolver : IDisposable
type ContextTypeResolver =  
    class 
        interface IDisposable 
    end
public class ContextTypeResolver implements IDisposable

The DynamicTypeService.ContextTypeResolver type exposes the following members.

Constructors

  Name Description
Public method DynamicTypeService.ContextTypeResolver Initializes a new instance of DynamicTypeService.ContextTypeResolver for the specified service.

Top

Methods

  Name Description
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 GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDisposable.Dispose Disposes the object and its resources.

Top

Examples

using (ContextTypeResolver ctxResolver = dts.GetContextTypeResolver(hierarchy))

{

//code that needs resolution and type binding...

}

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