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
System.Object
Microsoft.VisualStudio.Shell.Design.DynamicTypeService.ContextTypeResolver
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Public Class ContextTypeResolver _
Implements IDisposable
public class ContextTypeResolver : IDisposable
The DynamicTypeService.ContextTypeResolver type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DynamicTypeService.ContextTypeResolver | Initializes a new instance of DynamicTypeService.ContextTypeResolver for the specified service. |
Top
Methods
Name | Description | |
---|---|---|
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.