Share via

AssemblyReferences Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

A context item that maintains the set of references the designer is using to resolve type information.

Inheritance Hierarchy


Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)


Public Class AssemblyReferences _
    Inherits ContextItem
public class AssemblyReferences : ContextItem
public ref class AssemblyReferences : public ContextItem
type AssemblyReferences =  
        inherit ContextItem
public class AssemblyReferences extends ContextItem

The AssemblyReferences type exposes the following members.


  Name Description
Public method AssemblyReferences() Initializes a new instance of the AssemblyReferences class.
Public method AssemblyReferences(IEnumerable<AssemblyName>) Initializes a new instance of the AssemblyReferences class with the specified set of references.
Public method AssemblyReferences(AssemblyName, IEnumerable<AssemblyName>) Initializes a new instance of the AssemblyReferences class with the specified local assembly name and set of references.



  Name Description
Public property ItemType Gets a key in the context item manager that is used to determine what type of context item this object is. (Overrides ContextItem.ItemType.)
Public property LocalAssemblyName Gets the local assembly name.
Public property ReferencedAssemblies Gets an enumerable that can be used to enumerate the set of referenced assemblies.



  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 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 GetTypes Returns all the types in the set of referenced assemblies that derive from or implement the specified base type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnItemChanged Called on a context item before it is stored in the context item manager. (Overrides ContextItem.OnItemChanged(EditingContext, ContextItem).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)



You can add more references to the editing context by creating a new AssemblyReferences object that has the additional references and setting this value into the context. The true set of references used will be the union of the new and existing references.

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


Microsoft.Windows.Design Namespace

Other Resources

WPF Designer Extensibility