共用方式為


AssemblyDeletedEventArgs Class

Contains event data for the AssemblyDeletedEvent that gets raised when an assembly is deleted.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.VisualStudio.Shell.Design.AssemblyDeletedEventArgs

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

Syntax

'宣告
Public NotInheritable Class AssemblyDeletedEventArgs _
    Inherits EventArgs
public sealed class AssemblyDeletedEventArgs : EventArgs

The AssemblyDeletedEventArgs type exposes the following members.

Constructors

  Name Description
Public method AssemblyDeletedEventArgs(Assembly) Initializes a new instance of the AssemblyDeletedEventArgs class for the supplied assembly.
Public method AssemblyDeletedEventArgs(Assembly, array<Type[]) Initializes a new instance of the AssemblyDeletedEventArgs class for the supplied assembly and types.

Top

Properties

  Name Description
Public property DeletedAssembly Gets the Assembly that has been deleted.
Public property DeletedTypes Gets the set of Type that have been deleted.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The AssemblyDeleted event is raised when a type resolution service calls the OnAssemblyDeleted. The type resolution service should do this when it detects that an assembly it loaded no longer exists.

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

AssemblyDeletedEventHandler

AssemblyDeleted