ContractLock<T> Class
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Controls the lifetime of a pipeline component that represents an IContract implementation.
Namespace: Microsoft.VisualStudio.Tools.Applications
Assembly: Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll)
Syntax
'Declaration
Public NotInheritable Class ContractLock(Of T As IContract) _
Inherits ContractHandle
'Usage
Dim instance As ContractLock(Of T)
public sealed class ContractLock<T> : ContractHandle
where T : IContract
generic<typename T>
where T : IContract
public ref class ContractLock sealed : public ContractHandle
JScript does not support generic types or methods.
Type Parameters
- T
The type of the contract whose lifetime will be managed.
Inheritance Hierarchy
System.Object
System.AddIn.Pipeline.ContractHandle
Microsoft.VisualStudio.Tools.Applications.ContractLock<T>
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.